Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Stack Comments #4

Merged
merged 1 commit into from
Aug 4, 2022
Merged

Fix Stack Comments #4

merged 1 commit into from
Aug 4, 2022

Conversation

Kuly14
Copy link
Contributor

@Kuly14 Kuly14 commented Aug 4, 2022

After the staticcall the result is pushed to the stack, but after we use the iszero opcode, it is popped off the stack, and the result from the iszero is pushed onto the stack.

In this case, it's just 0x00 because iszero returned false because staticcall returned true 0x01.

@PatrickAlphaC
Copy link
Contributor

Ah! Thank you for this!!

@PatrickAlphaC PatrickAlphaC merged commit 0db2ce9 into smartcontractkit:main Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants