Skip to content

Commit

Permalink
markups: Add comment on end
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Aug 7, 2024
1 parent 0a9d498 commit 16a9293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sbor/src/traversal/untyped/traverser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ impl<'de, T: CustomTraversal> VecTraverser<'de, T> {
}
}
None => {
// We are due to read another element and exit but have no parent
// This is because we have finished reading the `root` value.
// Therefore we call `end`.
ActionHandler::new_from_current_offset(ancestor_path, decoder).end(config)
}
}
Expand Down

0 comments on commit 16a9293

Please sign in to comment.