Skip to content

Commit

Permalink
Remove StateChanges::apply moethod (#4801)
Browse files Browse the repository at this point in the history
* Remove StateChanges::apply moethod

* typos fixes
  • Loading branch information
sydhds authored Jan 3, 2025
1 parent e1a0bbc commit f8608ab
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions massa-final-state/src/state_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,23 +230,6 @@ impl Deserializer<StateChanges> for StateChangesDeserializer {
}
}

impl StateChanges {
/// extends the current `StateChanges` with another one
pub fn apply(&mut self, changes: StateChanges) {
// TODO deferred_call_changes ?
use massa_models::types::Applicable;
self.ledger_changes.apply(changes.ledger_changes);
self.async_pool_changes.apply(changes.async_pool_changes);
self.pos_changes.extend(changes.pos_changes);
self.executed_ops_changes
.extend(changes.executed_ops_changes);
self.executed_denunciations_changes
.extend(changes.executed_denunciations_changes);
self.execution_trail_hash_change
.apply(changes.execution_trail_hash_change);
}
}

#[cfg(test)]
mod test {
use std::collections::BTreeMap;
Expand Down

0 comments on commit f8608ab

Please sign in to comment.