From f1459d6d36ca7940e7dd2ba8de2205939489f364 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 5 Oct 2018 19:00:34 +0200 Subject: [PATCH] core/vm: fix nitpick --- core/vm/instructions_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index 42490664a9..73c5befaa7 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -548,8 +548,8 @@ func TestCreate2Addreses(t *testing.T) { origin := common.BytesToAddress(common.FromHex(tt.origin)) salt := common.BytesToHash(common.FromHex(tt.salt)) code := common.FromHex(tt.code) - codeHash := crypto.Keccak256Hash(code) - address := crypto.CreateAddress2(origin, salt, codeHash.Bytes()) + codeHash := crypto.Keccak256(code) + address := crypto.CreateAddress2(origin, salt, codeHash) /* stack := newstack() // salt, but we don't need that for this test