core/vm: fix linter issue in test

This commit is contained in:
Martin Holst Swende 2018-10-03 12:38:39 +02:00
parent da9e9e8a6b
commit 3342078959
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -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())
}