diff --git a/package-lock.json b/package-lock.json index 8f191ff..e8c4241 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sol-dbg", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sol-dbg", - "version": "0.0.1", + "version": "0.0.2", "license": "See LICENCE file.", "dependencies": { "@ethereumjs/block": "^3.6.2", diff --git a/package.json b/package.json index eb168ac..30f1c4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sol-dbg", - "version": "0.0.1", + "version": "0.0.2", "description": "Small (experimental) Solidity-level debugger built around EthereumJS", "keywords": [], "files": [ diff --git a/src/debug/sol_debugger.ts b/src/debug/sol_debugger.ts index a8daf51..42311ee 100644 --- a/src/debug/sol_debugger.ts +++ b/src/debug/sol_debugger.ts @@ -531,8 +531,8 @@ export class SolTxDebugger { let emittedEvent: EventDesc | undefined = undefined; // Finally check if an event is being emitted for this step if (step.opcode.name.startsWith("LOG")) { - const off = Number(evmStack[evmStack.length - 1]); - const size = Number(evmStack[evmStack.length - 2]); + const off = bigEndianBufToNumber(evmStack[evmStack.length - 1]); + const size = bigEndianBufToNumber(evmStack[evmStack.length - 2]); const nTopics = (step.opcode.name[3] as any) - ("0" as any); const payload = memory.slice(off, off + size);