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;
    uint64 amount;
    bytes revertMessage;
}

Properties

NameTypeDescription
senderaddressAddress of account that initiated smart contract call.
assetaddressAddress of asset, empty if it's gas token.
amountuint64Amount specified with the transaction.
revertMessagebytesArbitrary data sent back in onRevert.