diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 20:44:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 20:44:15 +0800 |
commit | f76cc6699ecd995d78cfd980b229473101191137 (patch) | |
tree | d91ea0c1725b080062cb6eb2b294e61af02cacc2 /tests/vm | |
parent | 80592f244da3f7323b7fa3e75a17c8e37c97fe8d (diff) | |
download | dexon-f76cc6699ecd995d78cfd980b229473101191137.tar dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.gz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.bz2 dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.lz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.xz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.zst dexon-f76cc6699ecd995d78cfd980b229473101191137.zip |
Changed context and ADDMOD, MULMOD
* Cleaned up VM execution. VM run now takes a context
* ADDMOD/MULMOD - removed incorrect cast
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/gh_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 959f20463..1e8cd5b51 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -116,7 +116,6 @@ func RunVmTest(p string, t *testing.T) { } else { ret, logs, gas, err = helper.RunState(statedb, env, test.Transaction) } - statedb.Sync() rexp := helper.FromHex(test.Out) if bytes.Compare(rexp, ret) != 0 { @@ -157,6 +156,7 @@ func RunVmTest(p string, t *testing.T) { } if !isVmTest { + statedb.Sync() if !bytes.Equal(ethutil.Hex2Bytes(test.PostStateRoot), statedb.Root()) { t.Errorf("%s's : Post state root error. Expected %s, got %x", name, test.PostStateRoot, statedb.Root()) } |