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
Name | Type | Description |
---|---|---|
sender | address | Address of account that initiated smart contract call. |
asset | address | Address of asset, empty if it's gas token. |
amount | uint256 | Amount specified with the transaction. |
revertMessage | bytes | Arbitrary data sent back in onRevert. |