#[no_mangle]
pub unsafe extern "C" fn iohk_jormungandr_wallet_vote_cast(
    wallet: WalletPtr,
    settings: SettingsPtr,
    proposal: ProposalPtr,
    choice: u8,
    valid_until: BlockDate,
    lane: u8,
    transaction_out: *mut TransactionOut
) -> ErrorPtr
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.

Don’t forget to remove transaction_out with iohk_jormungandr_waller_delete_buffer.