diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 90713c03ca..b42797cbdd 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -63,7 +63,7 @@ func BenchmarkUnpack(b *testing.B) { b.ResetTimer() var result any - for range b.N { + for b.Loop() { result, _ = abi.Unpack("method", encb) } _ = result