Skip to content

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1m0 committed Jul 7, 2022
1 parent 9a82d98 commit 36cd783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions src/debug/sol_debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 36cd783

Please sign in to comment.