core/vm : fix failing testcase (#17852)

* core/vm : fix failing testcase

* core/vm: fix nitpick
pull/17850/head
Martin Holst Swende 6 years ago committed by GitHub
parent 5d3b7bb023
commit 58e868b759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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

Loading…
Cancel
Save