aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helper')
-rw-r--r--tests/helper/vm.go2
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)