Function pallet_lottery::pallet::dispatchables::buy_ticket
source · pub fn buy_ticket<T: Config>(call: Box<<T as Config>::RuntimeCall>)
Expand description
Buy a ticket to enter the lottery.
This extrinsic acts as a passthrough function for call
. In all
situations where call
alone would succeed, this extrinsic should
succeed.
If call
is successful, then we will attempt to purchase a ticket,
which may fail silently. To detect success of a ticket purchase, you
should listen for the TicketBought
event.
This extrinsic must be called by a signed origin.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::buy_ticket
.