Commit d2df40a5 authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

remove an impossible condition (#12865)

parent 9e7d6d38
...@@ -609,7 +609,7 @@ func (h *Host) onOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpCo ...@@ -609,7 +609,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 // 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") panic("scope context changed without call-frame pop/push")
} }
cf := h.callStack[len(h.callStack)-1] cf := h.callStack[len(h.callStack)-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment