mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
core/vm: fix linter issue in test
This commit is contained in:
parent
da9e9e8a6b
commit
3342078959
1 changed files with 1 additions and 1 deletions
|
|
@ -559,7 +559,7 @@ func TestCreate2Addreses(t *testing.T) {
|
||||||
fmt.Printf("Example %d\n* address `0x%x`\n* salt `0x%x`\n* init_code `0x%x`\n* gas (assuming no mem expansion): `%v`\n* result: `%s`\n\n", i,origin, salt, code, gas, address.String())
|
fmt.Printf("Example %d\n* address `0x%x`\n* salt `0x%x`\n* init_code `0x%x`\n* gas (assuming no mem expansion): `%v`\n* result: `%s`\n\n", i,origin, salt, code, gas, address.String())
|
||||||
*/
|
*/
|
||||||
expected := common.BytesToAddress(common.FromHex(tt.expected))
|
expected := common.BytesToAddress(common.FromHex(tt.expected))
|
||||||
if bytes.Compare(expected.Bytes(), address.Bytes()) != 0 {
|
if !bytes.Equal(expected.Bytes(), address.Bytes()) {
|
||||||
t.Errorf("test %d: expected %s, got %s", i, expected.String(), address.String())
|
t.Errorf("test %d: expected %s, got %s", i, expected.String(), address.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue