mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
fix: show stack for push0 (#7970)
this fixes vmtrace after shanghai before: ```python VMOperation(pc=24, cost=2, ex=VMExecutedOperation(used=1942085, push=[], mem=None, store=None), sub=None, op='PUSH0', idx='14-644-13') ``` after: ```python VMOperation(pc=24, cost=2, ex=VMExecutedOperation(used=1942085, push=[HexBytes('0x00')], mem=None, store=None), sub=None, op='PUSH0', idx='14-644-13') ```
This commit is contained in:
parent
0e4e36b142
commit
63ecbf88ba
@ -453,7 +453,7 @@ func (ot *OeTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scop
|
||||
// Set the "push" of the last operation
|
||||
var showStack int
|
||||
switch {
|
||||
case ot.lastOp >= vm.PUSH1 && ot.lastOp <= vm.PUSH32:
|
||||
case ot.lastOp >= vm.PUSH0 && ot.lastOp <= vm.PUSH32:
|
||||
showStack = 1
|
||||
case ot.lastOp >= vm.SWAP1 && ot.lastOp <= vm.SWAP16:
|
||||
showStack = int(ot.lastOp-vm.SWAP1) + 2
|
||||
|
Loading…
Reference in New Issue
Block a user