diff options
Diffstat (limited to 'core/execution.go')
-rw-r--r-- | core/execution.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/execution.go b/core/execution.go index 8f2b5bee1..be45eeeb4 100644 --- a/core/execution.go +++ b/core/execution.go @@ -59,7 +59,11 @@ func (self *Execution) exec(code, contextAddr []byte, caller vm.ContextRef) (ret snapshot := env.State().Copy() start := time.Now() - ret, err = evm.Run(to, caller, code, self.value, self.Gas, self.price, self.input) + + context := vm.NewContext(caller, to, self.value, self.Gas, self.price) + context.SetCallCode(contextAddr, code) + + ret, err = evm.Run(context, self.input) //self.value, self.Gas, self.price, self.input) chainlogger.Debugf("vm took %v\n", time.Since(start)) if err != nil { env.State().Set(snapshot) |