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