Skip to content

Commit

Permalink
core/vm: update benchmark to use Errorf instead of Sprintf (ethereum#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Oct 17, 2024
1 parent 9207afb commit 296d314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/contracts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,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
}
})
Expand Down

0 comments on commit 296d314

Please sign in to comment.