aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-13 20:44:15 +0800
committerobscuren <geffobscura@gmail.com>2015-03-13 20:44:15 +0800
commitf76cc6699ecd995d78cfd980b229473101191137 (patch)
treed91ea0c1725b080062cb6eb2b294e61af02cacc2 /tests
parent80592f244da3f7323b7fa3e75a17c8e37c97fe8d (diff)
downloaddexon-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')
-rw-r--r--tests/vm/gh_test.go2
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())
}