From 4feeaf35457cc72a9afb3e06828d6f589d881279 Mon Sep 17 00:00:00 2001 From: aaronbuchwald Date: Tue, 10 May 2022 10:26:48 -0400 Subject: [PATCH] core/vm: update benchmark to use Errorf instead of Sprintf (#24845) --- core/vm/contracts_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index 30d9b49f71..aa8d2f1eb3 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -185,7 +185,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) { return } if common.Bytes2Hex(res) != test.Expected { - bench.Error(fmt.Sprintf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res))) + bench.Errorf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res)) return } })