Build
Architecture
protocol
contracts
Revert.sol
Struct.revertcontext

Git Source (opens in a new tab)

Struct containing revert context passed to onRevert.

struct RevertContext {
    address sender;
    address asset;
    uint256 amount;
    bytes revertMessage;
}

Properties

NameTypeDescription
senderaddressAddress of account that initiated smart contract call.
assetaddressAddress of asset. On a connected chain, it contains the fungible token address or is empty if it's a gas token. On ZetaChain, it contains the address of the ZRC20.
amountuint256Amount specified with the transaction.
revertMessagebytesArbitrary data sent back in onRevert.