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

[BUG] can not catch the error returned by precompiled contracts in EVM #70

Closed
4 tasks
adu-web3 opened this issue May 28, 2024 · 1 comment
Closed
4 tasks

Comments

@adu-web3
Copy link
Contributor

adu-web3 commented May 28, 2024

Summary of Bug

For ordinary contracts, when calling their functions with try/catch clause or low level call, if the function returns an error, the error should be caught and not bubbled up. But for precompiled contracts, it has different behavior: it would revert the whole tx even if try/catch or low level call is used

This issue is the root cause of another issue: imua-xyz/imua-contracts#39

Version

Steps to Reproduce

Screenshots

Additional context


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Copy link

This issue is stale because it has been open 45 days with no activity. Remove Status: Stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant