diff options
author | Determinant <[email protected]> | 2020-07-02 01:36:18 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-07-02 01:36:18 -0400 |
commit | ca6847998d867dc5d66e76a03bda9c72ae8d287b (patch) | |
tree | c6eb50a6e8c2d441d77468492c797c6c59885c46 /core/vm/interpreter.go | |
parent | 2d396b3c69a26e4096ccb376c012911d299c68c7 (diff) |
make MultiCoin.transfer work
Diffstat (limited to 'core/vm/interpreter.go')
-rw-r--r-- | core/vm/interpreter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index 007e5e3..3d388d6 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -220,7 +220,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) ( // for a call operation is the value. Transferring value from one // account to the others means the state is modified and should also // return with an error. - if operation.writes || (op == CALL && stack.Back(2).Sign() != 0) { + if operation.writes || ((op == CALL || op == CALLEX) && stack.Back(2).Sign() != 0) { return nil, errWriteProtection } } |