evmjit: Fix REVERT

This commit is contained in:
Paweł Bylica 2017-12-14 11:23:50 +01:00
parent d0bbe110b4
commit 4e82d06dbd
No known key found for this signature in database
GPG key ID: 7A0C037434FE77EF

View file

@ -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))
if r.status_code == C.EVM_REVERT {
evm.env.StateDB.RevertToSnapshot(snapshot)
err = errExecutionReverted
} else if r.status_code != C.EVM_SUCCESS {
// EVMJIT does not informs about the kind of the EVM expection.
err = ErrOutOfGas