File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
libevm/precompiles/p256verify Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,16 @@ import (
2222 "crypto/rand"
2323 "testing"
2424
25+ "github.com/holiman/uint256"
26+ "github.com/stretchr/testify/assert"
27+ "github.com/stretchr/testify/require"
28+
2529 "github.com/ava-labs/libevm/common"
2630 "github.com/ava-labs/libevm/core/vm"
2731 "github.com/ava-labs/libevm/libevm"
2832 "github.com/ava-labs/libevm/libevm/ethtest"
2933 "github.com/ava-labs/libevm/libevm/hookstest"
3034 "github.com/ava-labs/libevm/params"
31- "github.com/holiman/uint256"
32- "github.com/stretchr/testify/assert"
33- "github.com/stretchr/testify/require"
3435)
3536
3637// ulerdoganTestCase is the test case from
@@ -113,7 +114,9 @@ func BenchmarkPrecompile(b *testing.B) {
113114 var p Precompile
114115
115116 for range b .N {
116- p .Run (in ) //nolint:errcheck // Always nil
117+ // Explicitly drop return values to placate the linter. The error is
118+ // always nil and the input is tested above.
119+ _ , _ = p .Run (in )
117120 }
118121}
119122
You can’t perform that action at this time.
0 commit comments