mirror of
https://github.com/fluencelabs/aquavm
synced 2025-07-31 22:12:00 +00:00
fix(trace-handler): fix fold and canon compatibility (#357)
Fixes bug of traces divergence when `canon` is used inside `fold`. Closes #356.
This commit is contained in:
@@ -31,6 +31,10 @@ impl ExecutionTrace {
|
||||
self.0.get(usize::from(index))
|
||||
}
|
||||
|
||||
pub fn get_mut(&mut self, index: TracePos) -> Option<&mut ExecutedState> {
|
||||
self.0.get_mut(usize::from(index))
|
||||
}
|
||||
|
||||
pub fn pop(&mut self) -> Option<ExecutedState> {
|
||||
self.0.pop()
|
||||
}
|
||||
|
Reference in New Issue
Block a user