go.mod: upgrade to github.com/holiman/uint256 v1.2.0 (#22745)

This commit is contained in:
Martin Holst Swende
2021-05-10 12:29:33 +02:00
committed by GitHub
parent f19a679b09
commit ae5fcdc67f
5 changed files with 9 additions and 9 deletions

View File

@ -568,11 +568,11 @@ func BenchmarkOpSHA3(bench *testing.B) {
env.interpreter = evmInterpreter
mem.Resize(32)
pc := uint64(0)
start := uint256.NewInt()
start := new(uint256.Int)
bench.ResetTimer()
for i := 0; i < bench.N; i++ {
stack.pushN(*uint256.NewInt().SetUint64(32), *start)
stack.pushN(*uint256.NewInt(32), *start)
opSha3(&pc, evmInterpreter, &ScopeContext{mem, stack, nil})
}
}