From 3342078959fe40d10d619c9d22e0c3b10d344531 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Wed, 3 Oct 2018 12:38:39 +0200 Subject: [PATCH] core/vm: fix linter issue in test --- core/vm/instructions_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }