Function pallet_gear::pallet::dispatchables::send_reply
source · pub fn send_reply<T: Config>(
reply_to_id: MessageId,
payload: Vec<u8>,
gas_limit: u64,
value: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
keep_alive: bool,
)
Expand description
Send reply on message in Mailbox
.
Removes message by given MessageId
from callers Mailbox
:
rent funds become free, associated with the message value
transfers from message sender to extrinsic caller.
Generates reply on removed message with given parameters
and pushes it in MessageQueue
.
NOTE: source of the message in mailbox guaranteed to be a program.
NOTE: only user who is destination of the message, can claim value or reply on the message from mailbox.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::send_reply
.