diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-22 21:22:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-22 21:22:21 +0800 |
commit | b5beb1aac11af92bfe0f3ed7560b9eb08495ed09 (patch) | |
tree | 3f3fba73bca00f8c0a6c9f8bc29bca8ba36e991d /tests/vm | |
parent | 27cb0750c1deaed040876abdab1386a6687d7999 (diff) | |
download | dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.gz dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.bz2 dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.lz dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.xz dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.zst dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.zip |
added a transfer method to vm env
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/gh_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index f27cc7af3..64f279d8d 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -18,7 +18,7 @@ type Account struct { func StateObjectFromAccount(addr string, account Account) *ethstate.StateObject { obj := ethstate.NewStateObject(ethutil.Hex2Bytes(addr)) - obj.Balance = ethutil.Big(account.Balance) + obj.SetBalance(ethutil.Big(account.Balance)) if ethutil.IsHex(account.Code) { account.Code = account.Code[2:] @@ -44,9 +44,6 @@ func RunVmTest(p string, t *testing.T) { helper.CreateFileTests(t, p, &tests) for name, test := range tests { - if name != "CallRecursiveBomb" { - continue - } state := ethstate.New(helper.NewTrie()) for addr, account := range test.Pre { obj := StateObjectFromAccount(addr, account) @@ -92,7 +89,6 @@ func TestVMArithmetic(t *testing.T) { } func TestVMSystemOperation(t *testing.T) { - helper.Logger.SetLogLevel(5) const fn = "../files/vmtests/vmSystemOperationsTest.json" RunVmTest(fn, t) } |