Skip to content

Commit 0967885

Browse files
committed
Bugfix disassemble .evm diles
1 parent f08bbf9 commit 0967885

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/bytecode/EVMDisassembler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export class EVMDisassembler implements Disassembler {
1717
constructor() {}
1818

1919
disassembleSourceCode(contractName: string, source: string, path: string): DisassembledContract {
20+
if (source.startsWith('0x')) {
21+
return this.disassembleContract(source)
22+
}
2023
const compileJson = this.generateCompileObject(contractName, source, path)
2124
const compiledContract = JSON.parse(solc.compileStandardWrapper(JSON.stringify(compileJson)))
2225
const contractWithExt = `${contractName}.sol`

0 commit comments

Comments
 (0)