Simplify loop

This commit is contained in:
CMajeri 2022-06-21 09:36:16 +02:00
parent d87e8eb658
commit a29939938b

View file

@ -174,7 +174,8 @@ func (l *StructLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s
memory := scope.Memory memory := scope.Memory
stack := scope.Stack stack := scope.Stack
contract := scope.Contract contract := scope.Contract
for i := l.depth - (depth - 1); l.depth > depth-1; l.depth, i = l.depth-1, i-1 { for ; l.depth > depth-1; l.depth = l.depth - 1 {
i := l.depth - (depth - 1)
if l.current.error == nil { if l.current.error == nil {
switch stack.Data()[len(stack.Data())-i].Bytes32()[31] { switch stack.Data()[len(stack.Data())-i].Bytes32()[31] {
case 0x00: case 0x00: