From cb84e3f02953f2df166ae69369d222dcbbd7d78d Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Sat, 1 Oct 2016 15:44:53 +0300 Subject: cmd, core, internal, light, tests: avoid hashing the code in the VM --- core/state/sync_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/state/sync_test.go') diff --git a/core/state/sync_test.go b/core/state/sync_test.go index c768781a4..670e1fb1b 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -54,7 +54,7 @@ func makeTestState() (ethdb.Database, common.Hash, []*testAccount) { acc.nonce = uint64(42 * i) if i%3 == 0 { - obj.SetCode([]byte{i, i, i, i, i}) + obj.SetCode(crypto.Keccak256Hash([]byte{i, i, i, i, i}), []byte{i, i, i, i, i}) acc.code = []byte{i, i, i, i, i} } state.UpdateStateObject(obj) -- cgit