Skip to content

Commit d10c4a3

Browse files
author
Darioush Jalali
committed
legacy precompile gas fix
1 parent a8ffd92 commit d10c4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libevm/legacy/legacy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (c PrecompiledStatefulContract) Upgrade() vm.PrecompiledStatefulContract {
3131
return func(env vm.PrecompileEnvironment, input []byte) ([]byte, error) {
3232
gas := env.Gas()
3333
ret, remainingGas, err := c(env, input, gas)
34-
if used := gas - remainingGas; used < gas {
34+
if used := gas - remainingGas; used <= gas {
3535
env.UseGas(used)
3636
}
3737
return ret, err

0 commit comments

Comments
 (0)