Last active
October 31, 2019 20:56
-
-
Save devhawk/b5bec1af202a95c4a12c03930b2f0bc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { disassembleByteCode } from '@neo-one/node-core' | |
| import * as fs from "fs"; | |
| async function mainAsync() { | |
| const PATH = String.raw`path\to\avm\file` | |
| let avmByteCodes = await fs.promises.readFile(PATH); | |
| const lines = disassembleByteCode(avmByteCodes) | |
| for (const line of lines) | |
| { | |
| console.log(line.value); | |
| } | |
| } | |
| mainAsync().catch(err => console.log(err)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment