Function snapps_txn_reference_impl::update_logic::apply_snapp_account_update [−][src]
pub fn apply_snapp_account_update<'a>(
account: Account<'a>,
update: &PartyUpdate<'a>,
authorization: &PartyAuthorization,
sequence_events: &SequenceEvents<'_>,
global_slot: u32
) -> Account<'a>Expand description
Update the snapp field of account::Account with a party::PartyUpdate and a
sequence_event::SequenceEvents.
In order, this must
- get the
snappfield of the account, oraccount::SnappAccount::emptyif it isNone - apply
apply_snapp_updateto this value - set the
snappfield of the account to the result, or toNoneifaccount::SnappAccount::is_emptyis true.