ExocoreNetwork / exocore

5 stars 9 forks source link

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

Open adu-web3 opened 1 month ago

adu-web3 commented 1 month ago

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: https://github.com/ExocoreNetwork/exocore-contracts/issues/39

Version

Steps to Reproduce

Screenshots

Additional context


For Admin Use