mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Simplify loop
This commit is contained in:
parent
d87e8eb658
commit
a29939938b
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ func (l *StructLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s
|
|||
memory := scope.Memory
|
||||
stack := scope.Stack
|
||||
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 {
|
||||
switch stack.Data()[len(stack.Data())-i].Bytes32()[31] {
|
||||
case 0x00:
|
||||
|
|
|
|||
Loading…
Reference in a new issue