aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-02 23:14:12 +0800
committerobscuren <geffobscura@gmail.com>2015-01-02 23:14:12 +0800
commit4dc7ee90879d7146c9e5004c04992c90ad78f632 (patch)
tree7521046c38bb2e7c69b9813b669c87a8a55d4641 /tests/helper/vm.go
parente2d1d832efe0623539c9d37ca8aee17d44e47067 (diff)
downloadgo-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.tar.gz
go-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.tar.zst
go-tangerine-4dc7ee90879d7146c9e5004c04992c90ad78f632.zip
Closure => Context
Diffstat (limited to 'tests/helper/vm.go')
-rw-r--r--tests/helper/vm.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go
index e174e0892..aa17313b7 100644
--- a/tests/helper/vm.go
+++ b/tests/helper/vm.go
@@ -74,19 +74,19 @@ func (self *Env) vm(addr, data []byte, gas, price, value *big.Int) *core.Executi
return exec
}
-func (self *Env) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
+func (self *Env) Call(caller vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
exe := self.vm(addr, data, gas, price, value)
ret, err := exe.Call(addr, caller)
self.Gas = exe.Gas
return ret, err
}
-func (self *Env) CallCode(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
+func (self *Env) CallCode(caller vm.ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
exe := self.vm(caller.Address(), data, gas, price, value)
return exe.Call(addr, caller)
}
-func (self *Env) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef) {
+func (self *Env) Create(caller 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(caller)
}