Skip to content

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

@adu-web3

Description

@adu-web3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions