Skip to content

Commit

Permalink
Add condition to remove stop from last opcode trace
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Sep 2, 2024
1 parent 42b7c7b commit 8ecd41c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
- develop
- develop-eldelberry
- develop-banana
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion src/sm/sm_main/debug/full-tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ class FullTracer {
}
// If is an ether transfer, don't add stop opcode to trace
if (singleInfo.opcode === 'STOP'
&& (typeof prevStep === 'undefined' || (opCreate.includes(prevStep.opcode) && Number(prevStep.gas_cost) <= 32000))
&& (typeof prevStep === 'undefined' || (opCreate.includes(prevStep.opcode) && Number(prevStep.gas_cost) <= 32000 && prevStep.error === ''))
&& Number(getVarFromCtx(ctx, false, 'bytecodeLength')) === 0) {
this.full_trace.pop();
}
Expand Down

0 comments on commit 8ecd41c

Please sign in to comment.