diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go
index c0e62e4ceee9d3462418aadaa9fc5801f1f8dd82..73c5befaa721465cd00b13de4d2ec2e31b440b2b 100644
--- a/core/vm/instructions_test.go
+++ b/core/vm/instructions_test.go
@@ -548,7 +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)
-		address := crypto.CreateAddress2(origin, salt, code)
+		codeHash := crypto.Keccak256(code)
+		address := crypto.CreateAddress2(origin, salt, codeHash)
 		/*
 			stack          := newstack()
 			// salt, but we don't need that for this test