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
snapp
field of the account, oraccount::SnappAccount::empty
if it isNone
- apply
apply_snapp_update
to this value - set the
snapp
field of the account to the result, or toNone
ifaccount::SnappAccount::is_empty
is true.