From d52878c744fd7acce727feb41c2d4296e56826d3 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 1 Feb 2015 15:29:57 +0100 Subject: Removed some VMEnv & Added VmType() to vm.Environment --- tests/helper/vm.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/helper') diff --git a/tests/helper/vm.go b/tests/helper/vm.go index 7c33839cf..e9557e871 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -59,6 +59,7 @@ func (self *Env) Time() int64 { return self.time } func (self *Env) Difficulty() *big.Int { return self.difficulty } func (self *Env) State() *state.StateDB { return self.state } func (self *Env) GasLimit() *big.Int { return self.gasLimit } +func (self *Env) VmType() vm.Type { return vm.StdVmTy } func (self *Env) GetHash(n uint64) []byte { return crypto.Sha3([]byte(big.NewInt(int64(n)).String())) } -- cgit v1.2.3 From 6fecb150d6f2bb36d3f1b7b9095cac428df2ce5a Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 2 Feb 2015 19:55:38 -0800 Subject: Updated tests --- tests/helper/vm.go | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/helper') diff --git a/tests/helper/vm.go b/tests/helper/vm.go index e9557e871..f1c1ffdfc 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -148,7 +148,6 @@ func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state. coinbase.SetGasPool(ethutil.Big(env["currentGasLimit"])) message := NewMessage(keyPair.Address(), to, data, value, gas, price) - Log.DebugDetailf("message{ to: %x, from %x, value: %v, gas: %v, price: %v }\n", message.to[:4], message.from[:4], message.value, message.gas, message.price) vmenv := NewEnvFromMap(statedb, env, tx) st := core.NewStateTransition(vmenv, message, coinbase) vmenv.origin = keyPair.Address() -- cgit v1.2.3