Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d2df40a5
Unverified
Commit
d2df40a5
authored
Nov 20, 2024
by
zhiqiangxu
Committed by
GitHub
Nov 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove an impossible condition (#12865)
parent
9e7d6d38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
script.go
op-chain-ops/script/script.go
+1
-1
No files found.
op-chain-ops/script/script.go
View file @
d2df40a5
...
...
@@ -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
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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment