diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-17 20:24:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-17 20:24:25 +0800 |
commit | 0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa (patch) | |
tree | 9d4b05ed91f007c0831033c35f80dff691a4c7e7 /tests | |
parent | ff55c6f5badda7ef11c38ef5d94b71420b14817c (diff) | |
download | go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.gz go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.bz2 go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.lz go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.xz go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.zst go-tangerine-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.zip |
Fixed VM & Tests w/ conversion
Diffstat (limited to 'tests')
-rw-r--r-- | tests/helper/vm.go | 4 | ||||
-rw-r--r-- | tests/vm/gh_test.go | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go index f59abd23a..44c108870 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -119,8 +119,8 @@ func (self *Env) CallCode(caller vm.ContextRef, addr common.Address, data []byte return exe.Call(addr, caller) } -func (self *Env) Create(caller vm.ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef) { - exe := self.vm(nil, data, gas, price, value) +func (self *Env) Create(caller vm.ContextRef, addr *common.Address, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef) { + exe := self.vm(addr, data, gas, price, value) if self.vmTest { caller.ReturnGas(gas, price) diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 159561c62..f352e862d 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -11,7 +11,6 @@ import ( "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/tests/helper" - "github.com/ethereum/go-ethereum/vm" ) type Account struct { @@ -81,11 +80,6 @@ func RunVmTest(p string, t *testing.T) { helper.CreateFileTests(t, p, &tests) for name, test := range tests { - helper.Logger.SetLogLevel(5) - vm.Debug = true - if name != "TransactionCreateSuicideContract" { - continue - } db, _ := ethdb.NewMemDatabase() statedb := state.New(common.Hash{}, db) for addr, account := range test.Pre { |