Skip to content
Lattice

RevertOptions

Git Source

Options controlling the ZetaChain revert/abort flow for a cross-chain call.

Verbatim mirror of the canonical RevertOptions struct (zeta-chain/protocol-contracts contracts/Revert.sol, MIT).

struct RevertOptions {
    address revertAddress;
    bool callOnRevert;
    address abortAddress;
    bytes revertMessage;
    uint256 onRevertGasLimit;
}

Properties

NameTypeDescription
revertAddressaddressAddress to receive the revert on the source chain.
callOnRevertboolWhether the onRevert hook should be called.
abortAddressaddressAddress to receive funds if the message is aborted.
revertMessagebytesArbitrary data sent back in onRevert.
onRevertGasLimituint256Gas limit for the revert tx (unused on GatewayZEVM methods).