mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
core/vm : fix failing testcase
This commit is contained in:
parent
5d3b7bb023
commit
070f90d6dc
1 changed files with 2 additions and 1 deletions
|
|
@ -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.Keccak256Hash(code)
|
||||||
|
address := crypto.CreateAddress2(origin, salt, codeHash.Bytes())
|
||||||
/*
|
/*
|
||||||
stack := newstack()
|
stack := newstack()
|
||||||
// salt, but we don't need that for this test
|
// salt, but we don't need that for this test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue