Function snapps_txn_reference_impl::update_logic::apply_voting_for_update[][src]

pub fn apply_voting_for_update<'a>(
    account: Account<'a>,
    update: &PartyUpdate<'_>
) -> Account<'a>
Expand description

Update the voting_for field of account::Account with the new value from the party::PartyUpdate.

Using set_or_keep:

account.voting_for = set_or_keep(account.voting_for, update.voting_for)