From f76cc6699ecd995d78cfd980b229473101191137 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 13 Mar 2015 13:44:15 +0100 Subject: Changed context and ADDMOD, MULMOD * Cleaned up VM execution. VM run now takes a context * ADDMOD/MULMOD - removed incorrect cast --- tests/vm/gh_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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()) } -- cgit v1.2.3