Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
52eb87d8
Unverified
Commit
52eb87d8
authored
May 10, 2022
by
aaronbuchwald
Committed by
GitHub
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm: update benchmark to use Errorf instead of Sprintf (#24845)
parent
91751cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
contracts_test.go
core/vm/contracts_test.go
+1
-1
No files found.
core/vm/contracts_test.go
View file @
52eb87d8
...
...
@@ -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
.
Error
f
(
"Expected %v, got %v"
,
test
.
Expected
,
common
.
Bytes2Hex
(
res
))
return
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment