diff --git a/state/runtime/evm/instructions_test.go b/state/runtime/evm/instructions_test.go index b0285e523a..95bab07923 100644 --- a/state/runtime/evm/instructions_test.go +++ b/state/runtime/evm/instructions_test.go @@ -1141,7 +1141,7 @@ func TestCodeCopyLenZero(t *testing.T) { // We check that no gas was spent and there was no error assert.Equal(t, expectedGas, s.gas) - assert.Equal(t, s.err, nil) + assert.NoError(t, s.err) } func TestCodeCopy(t *testing.T) {