fix(execution): poststate extension (#1929)

This commit is contained in:
Roman Krasiuk
2023-03-23 15:43:42 +02:00
committed by GitHub
parent d91102eec2
commit 56f219fc94

View File

@@ -269,6 +269,10 @@ impl PostState {
/// Extend this [PostState] with the changes in another [PostState].
pub fn extend(&mut self, other: PostState) {
if other.changes.is_empty() {
return
}
self.changes.reserve(other.changes.len());
let mut next_transition_id = self.current_transition_id;