Skip to content

Commit a71e038

Browse files
committed
orreturn
1 parent 40c1a55 commit a71e038

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

evm.odin

+18-18
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ step :: proc(vm: ^EVM) -> (err: Error = .None) {
10601060
panic("EIP-4844 is unsupported")
10611061
case .POP:
10621062
top := pop(&vm.stack.data)
1063-
record_gas(vm, base)
1063+
record_gas(vm, base) or_return
10641064
return
10651065
case .MLOAD:
10661066
mload(vm) or_return
@@ -1084,7 +1084,7 @@ step :: proc(vm: ^EVM) -> (err: Error = .None) {
10841084
gas(vm) or_return
10851085
case .JUMPDEST:
10861086
// no-op: just record gas
1087-
record_gas(vm, jumpdest)
1087+
record_gas(vm, jumpdest) or_return
10881088
case .TLOAD:
10891089
tload(vm) or_return
10901090
case .TSTORE:
@@ -1190,37 +1190,37 @@ step :: proc(vm: ^EVM) -> (err: Error = .None) {
11901190
case .DUP16:
11911191
dup_n(vm, 16) or_return
11921192
case .SWAP1:
1193-
swap_n(vm, 1)
1193+
swap_n(vm, 1) or_return
11941194
case .SWAP2:
1195-
swap_n(vm, 2)
1195+
swap_n(vm, 2) or_return
11961196
case .SWAP3:
1197-
swap_n(vm, 3)
1197+
swap_n(vm, 3) or_return
11981198
case .SWAP4:
1199-
swap_n(vm, 4)
1199+
swap_n(vm, 4) or_return
12001200
case .SWAP5:
1201-
swap_n(vm, 5)
1201+
swap_n(vm, 5) or_return
12021202
case .SWAP6:
1203-
swap_n(vm, 6)
1203+
swap_n(vm, 6) or_return
12041204
case .SWAP7:
1205-
swap_n(vm, 7)
1205+
swap_n(vm, 7) or_return
12061206
case .SWAP8:
1207-
swap_n(vm, 8)
1207+
swap_n(vm, 8) or_return
12081208
case .SWAP9:
1209-
swap_n(vm, 9)
1209+
swap_n(vm, 9) or_return
12101210
case .SWAP10:
1211-
swap_n(vm, 10)
1211+
swap_n(vm, 10) or_return
12121212
case .SWAP11:
1213-
swap_n(vm, 11)
1213+
swap_n(vm, 11) or_return
12141214
case .SWAP12:
1215-
swap_n(vm, 12)
1215+
swap_n(vm, 12) or_return
12161216
case .SWAP13:
1217-
swap_n(vm, 13)
1217+
swap_n(vm, 13) or_return
12181218
case .SWAP14:
1219-
swap_n(vm, 14)
1219+
swap_n(vm, 14) or_return
12201220
case .SWAP15:
1221-
swap_n(vm, 15)
1221+
swap_n(vm, 15) or_return
12221222
case .SWAP16:
1223-
swap_n(vm, 16)
1223+
swap_n(vm, 16) or_return
12241224
case .SELFBALANCE,
12251225
.LOG0,
12261226
.LOG1,

0 commit comments

Comments
 (0)