Fixed test helper

This commit is contained in:
obscuren
2015-03-03 11:56:28 +01:00
parent 34ee5ab9a8
commit 49da6a8d80
2 changed files with 4 additions and 4 deletions

View File

@ -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)