We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157966f commit e582de3Copy full SHA for e582de3
rust/src/contract_interface.rs
@@ -148,8 +148,8 @@ impl RelatedContracts<'_> {
148
}
149
150
impl RelatedContracts<'static> {
151
- pub fn states(self) -> impl Iterator<Item = (ContractInstanceId, Option<State<'static>>)> {
152
- self.map.into_iter()
+ pub fn states(&self) -> impl Iterator<Item = (&ContractInstanceId, &Option<State<'static>>)> {
+ self.map.iter()
153
154
155
0 commit comments