Skip to content

Commit

Permalink
remove an impossible condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Nov 7, 2024
1 parent bc9b6cd commit b2b76a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-chain-ops/script/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ func (h *Host) onOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpCo
})
}
// Sanity check that top of the call-stack matches the scope context now
if len(h.callStack) == 0 || h.callStack[len(h.callStack)-1].Ctx != scopeCtx {
if h.callStack[len(h.callStack)-1].Ctx != scopeCtx {
panic("scope context changed without call-frame pop/push")
}
cf := h.callStack[len(h.callStack)-1]
Expand Down

0 comments on commit b2b76a0

Please sign in to comment.