diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-02 23:14:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-02 23:14:12 +0800 |
commit | 4dc7ee90879d7146c9e5004c04992c90ad78f632 (patch) | |
tree | 7521046c38bb2e7c69b9813b669c87a8a55d4641 /xeth/vm_env.go | |
parent | e2d1d832efe0623539c9d37ca8aee17d44e47067 (diff) | |
download | go-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.tar.gz go-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.tar.zst go-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.zip |
Closure => Context
Diffstat (limited to 'xeth/vm_env.go')
-rw-r--r-- | xeth/vm_env.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/vm_env.go b/xeth/vm_env.go index 7633e0640..d2a21afd5 100644 --- a/xeth/vm_env.go +++ b/xeth/vm_env.go @@ -50,16 +50,16 @@ func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *core.Execu return core.NewExecution(self, addr, data, gas, price, value) } -func (self *VMEnv) Call(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) { +func (self *VMEnv) Call(me vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) { exe := self.vm(addr, data, gas, price, value) return exe.Call(addr, me) } -func (self *VMEnv) CallCode(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) { +func (self *VMEnv) CallCode(me vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) { exe := self.vm(me.Address(), data, gas, price, value) return exe.Call(addr, me) } -func (self *VMEnv) Create(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef) { +func (self *VMEnv) Create(me vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef) { exe := self.vm(addr, data, gas, price, value) return exe.Create(me) } |