diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index d7f184cf35..c0e62e4cee 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -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()) */ 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()) }