We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ffd92 commit d10c4a3Copy full SHA for d10c4a3
libevm/legacy/legacy.go
@@ -31,7 +31,7 @@ func (c PrecompiledStatefulContract) Upgrade() vm.PrecompiledStatefulContract {
31
return func(env vm.PrecompileEnvironment, input []byte) ([]byte, error) {
32
gas := env.Gas()
33
ret, remainingGas, err := c(env, input, gas)
34
- if used := gas - remainingGas; used < gas {
+ if used := gas - remainingGas; used <= gas {
35
env.UseGas(used)
36
}
37
return ret, err
0 commit comments