Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Sep 20, 2024
1 parent 05e6092 commit e028e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas
ok := evm.Accesses.TouchFullAccount(addr.Bytes(), false, gc.consumeGas)
if !ok {
evm.StateDB.RevertToSnapshot(snapshot)
return nil, 0, ErrOutOfGas
return nil, gc.availableGas, ErrOutOfGas
}
gas = gc.availableGas
}
Expand Down

0 comments on commit e028e81

Please sign in to comment.