diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-03 18:56:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-03 18:56:28 +0800 |
commit | 49da6a8d809ecc5f5b1f3c5ccea9ebcd45d4e1c3 (patch) | |
tree | 1abf4d41586b132af9efcf4eb9653ed00e82b38c /tests/helper | |
parent | 34ee5ab9a8cfa67050a5bddc8eed4342b6409f59 (diff) | |
download | dexon-49da6a8d809ecc5f5b1f3c5ccea9ebcd45d4e1c3.tar.gz dexon-49da6a8d809ecc5f5b1f3c5ccea9ebcd45d4e1c3.tar.zst dexon-49da6a8d809ecc5f5b1f3c5ccea9ebcd45d4e1c3.zip |
Fixed test helper
Diffstat (limited to 'tests/helper')
-rw-r--r-- | tests/helper/vm.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go index a1a1a98ca..8811936fa 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -109,6 +109,8 @@ func (self *Env) Call(caller vm.ContextRef, addr, data []byte, gas, price, value func (self *Env) CallCode(caller vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) { if self.vmTest && self.depth > 0 { caller.ReturnGas(gas, price) + + return nil, nil } exe := self.vm(caller.Address(), data, gas, price, value) return exe.Call(addr, caller) |