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)
downloadgo-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.gz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.bz2
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.lz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.xz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.zst
go-tangerine-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())
}