Skip to content

Commit e5dab35

Browse files
Merge pull request #4385 from OffchainLabs/stylus-gas-backport
stylus: refactor out of gas
2 parents 03949e7 + 1826890 commit e5dab35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arbos/programs/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func newApiClosures(
100100
multiGas.SaturatingAddInto(costMultiGas)
101101
db.SetState(actingAddress, key, value)
102102
}
103-
if isOutOfGas {
103+
if isOutOfGas || *gasLeft == 0 {
104104
if evm.Context.ArbOSVersion < 50 {
105105
return Failure
106106
} else {

0 commit comments

Comments
 (0)