From df8aa90c835035e5e913b53431ea31f8115e26e9 Mon Sep 17 00:00:00 2001 From: yajianggroup Date: Tue, 23 Sep 2025 14:58:44 +0800 Subject: [PATCH] accounts: using testing.B.Loop Signed-off-by: yajianggroup --- accounts/abi/unpack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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