Unverified Commit 58e868b7 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

core/vm : fix failing testcase (#17852)

* core/vm : fix failing testcase

* core/vm: fix nitpick
parent 5d3b7bb0
...@@ -548,7 +548,8 @@ func TestCreate2Addreses(t *testing.T) { ...@@ -548,7 +548,8 @@ func TestCreate2Addreses(t *testing.T) {
origin := common.BytesToAddress(common.FromHex(tt.origin)) origin := common.BytesToAddress(common.FromHex(tt.origin))
salt := common.BytesToHash(common.FromHex(tt.salt)) salt := common.BytesToHash(common.FromHex(tt.salt))
code := common.FromHex(tt.code) code := common.FromHex(tt.code)
address := crypto.CreateAddress2(origin, salt, code) codeHash := crypto.Keccak256(code)
address := crypto.CreateAddress2(origin, salt, codeHash)
/* /*
stack := newstack() stack := newstack()
// salt, but we don't need that for this test // salt, but we don't need that for this test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment