Function wallet_core::c::wallet_vote_cast
source · pub unsafe fn wallet_vote_cast(
wallet: WalletPtr,
settings: SettingsPtr,
proposal: ProposalPtr,
choice: u8,
valid_until: BlockDate,
lane: u8,
transaction_out: *mut TransactionOut
) -> Result
Expand description
build the vote cast transaction
Errors
This function may fail upon receiving a null pointer or a choice
value
that does not fall within the range specified in proposal
.
Safety
This function dereference raw pointers. Even though the function checks if the pointers are null. Mind not to put random values in or you may see unexpected behaviors.