mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
evmjit: Fix REVERT
This commit is contained in:
parent
d0bbe110b4
commit
4e82d06dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -493,7 +493,7 @@ func (evm *EVMJIT) Run(snapshot int, contract *Contract, input []byte) (ret []by
|
||||||
output := C.GoBytes(unsafe.Pointer(r.output_data), C.int(r.output_size))
|
output := C.GoBytes(unsafe.Pointer(r.output_data), C.int(r.output_size))
|
||||||
|
|
||||||
if r.status_code == C.EVM_REVERT {
|
if r.status_code == C.EVM_REVERT {
|
||||||
evm.env.StateDB.RevertToSnapshot(snapshot)
|
err = errExecutionReverted
|
||||||
} else if r.status_code != C.EVM_SUCCESS {
|
} else if r.status_code != C.EVM_SUCCESS {
|
||||||
// EVMJIT does not informs about the kind of the EVM expection.
|
// EVMJIT does not informs about the kind of the EVM expection.
|
||||||
err = ErrOutOfGas
|
err = ErrOutOfGas
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue