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 /core/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 'core/vm_env.go')
-rw-r--r-- | core/vm_env.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm_env.go b/core/vm_env.go index 209115eab..4e0315ff3 100644 --- a/core/vm_env.go +++ b/core/vm_env.go @@ -46,16 +46,16 @@ func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *Execution return 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) } |