Skip to content

Commit e582de3

Browse files
committed
feat: return ref iter over related contracts
1 parent 157966f commit e582de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/contract_interface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ impl RelatedContracts<'_> {
148148
}
149149

150150
impl RelatedContracts<'static> {
151-
pub fn states(self) -> impl Iterator<Item = (ContractInstanceId, Option<State<'static>>)> {
152-
self.map.into_iter()
151+
pub fn states(&self) -> impl Iterator<Item = (&ContractInstanceId, &Option<State<'static>>)> {
152+
self.map.iter()
153153
}
154154
}
155155

0 commit comments

Comments
 (0)