Build
Architecture
protocol
contracts
Revert.sol
Interface.revertable

Interface.revertable

Git Source (opens in a new tab)

Interface for contracts that support revertable calls.

onRevert

Called when a revertable call is made.

function onRevert(RevertContext calldata revertContext) external;

Parameters

NameTypeDescription
revertContextRevertContextRevert context to pass to onRevert.

Continue Learning

Continue with the next part or try a related tutorial

Feedback
How has your developer experience been?
Share your feedback and help improve it for everyone.