Function snapps_txn_reference_impl::update_logic::apply_snapp_app_state_update [−][src]
pub fn apply_snapp_app_state_update<'a>(
snapp_account: SnappAccount<'a>,
update: &PartyUpdate<'_>
) -> SnappAccount<'a>
Expand description
Update the app_state
field of account::SnappAccount
with the new value from the
party::PartyUpdate
.
Using compute_app_state_update
:
snapp_account.app_state = compute_app_state_update(snapp_account.app_state, update.app_state)