zeta-chain / protocol-contracts

Protocol contracts implementing the core logic of the protocol, deployed on ZetaChain and on connected chains
MIT License
68 stars 55 forks source link

Remove `onRevert` from `UniversalContract` interface #356

Closed lumtis closed 1 day ago

lumtis commented 1 week ago

Current UniversalContract contains

interface UniversalContract {
    function onCrossChainCall(
        zContext calldata context,
        address zrc20,
        uint256 amount,
        bytes calldata message
    )
        external;

    function onRevert(RevertContext calldata revertContext) external;
}

onRevert should not be a requirement to develop universal apps, therefore the onRevert method should be removed from the interface, the developer should use the Revertable interface.