show dbs
This file contains 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
bytecode2opcode(bytecode): | |
# Decompile bytecode | |
opl = mythril.disassembler.asm.disassemble(bytearray.fromhex(bytes)) | |
# Append opcodes | |
opcode = '' | |
for op in opl: | |
opcode += op['opcode'] + ' ' | |
# Remove useless whitespace |