Function snapps_txn_reference_impl::update_logic::apply_sequence_event_update [−][src]
pub fn apply_sequence_event_update<'a>(
snapp: SnappAccount<'a>,
sequence_events: &SequenceEvents<'_>,
global_slot: u32
) -> SnappAccount<'a>
Expand description
Update the sequence_event
field of account::SnappAccount
with the new sequence events at
the given global slot (since genesis).
This calls sequence_event::SequenceState::push_sequence_events
:
snapp.sequence_state = sequence_event::SequenceState::push_sequence_events(
snapp.sequence_state,
sequence_events,
global_slot,
)