From e582de3ed49ea102f84fffba68f07dc934ac4d0a Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Mon, 30 Dec 2024 16:52:07 +0100 Subject: [PATCH] feat: return ref iter over related contracts --- rust/src/contract_interface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/contract_interface.rs b/rust/src/contract_interface.rs index a81521e..b0dd29b 100644 --- a/rust/src/contract_interface.rs +++ b/rust/src/contract_interface.rs @@ -148,8 +148,8 @@ impl RelatedContracts<'_> { } impl RelatedContracts<'static> { - pub fn states(self) -> impl Iterator>)> { - self.map.into_iter() + pub fn states(&self) -> impl Iterator>)> { + self.map.iter() } }