aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-10-06 01:02:06 +0800
committerGitHub <noreply@github.com>2018-10-06 01:02:06 +0800
commit58e868b759d13a39200b9283278d0c80d58b4b15 (patch)
treede43fc3b624985d16a7ee4e1a20525c40289eba6
parent5d3b7bb023d0e21d597ef2febc1bad03efa90050 (diff)
downloadgo-tangerine-58e868b759d13a39200b9283278d0c80d58b4b15.tar.gz
go-tangerine-58e868b759d13a39200b9283278d0c80d58b4b15.tar.zst
go-tangerine-58e868b759d13a39200b9283278d0c80d58b4b15.zip
core/vm : fix failing testcase (#17852)
* core/vm : fix failing testcase * core/vm: fix nitpick
-rw-r--r--core/vm/instructions_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go
index c0e62e4ce..73c5befaa 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