You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address.sendValue ignores errors coming from the value recipient and throws a custom error on failure. This doesn't seem very useful, when a smart contract receive reverts, it probably has some important details to share about the failure. It seems that the functionCall error handling would be better here, bubble the original error and throw a generic one only if the contract has absolutely no details to share.
The text was updated successfully, but these errors were encountered:
📝 Details
Address.sendValue
ignores errors coming from the value recipient and throws a custom error on failure. This doesn't seem very useful, when a smart contractreceive
reverts, it probably has some important details to share about the failure. It seems that thefunctionCall
error handling would be better here, bubble the original error and throw a generic one only if the contract has absolutely no details to share.The text was updated successfully, but these errors were encountered: