diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-16 18:36:48 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-16 18:43:14 +0800 |
commit | 4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6 (patch) | |
tree | 83afa01b7768105ad8f6b76ff13c07232f3a369e /core/vm/evm.go | |
parent | 9bd6068fefe5687735bed342f3545f515fa717c8 (diff) | |
download | go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar.gz go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar.bz2 go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar.lz go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar.xz go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.tar.zst go-tangerine-4e0fea4d30e922c1cc0e8e2f33e5ad8ae55053d6.zip |
core/vm: polish RETURNDATA, add missing returns to CALL*
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go index cc4214a16..448acd469 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -261,9 +261,9 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte // Make sure the readonly is only set if we aren't in readonly yet // this makes also sure that the readonly flag isn't removed for // child calls. - if !evm.interpreter.readonly { - evm.interpreter.readonly = true - defer func() { evm.interpreter.readonly = false }() + if !evm.interpreter.readOnly { + evm.interpreter.readOnly = true + defer func() { evm.interpreter.readOnly = false }() } var ( |