git.delta.rocks / unique-network / refs/commits / 7563962a61ba

difftreelog

chore fixed code review request

Grigoriy Simonov2022-07-18parent: #59616c1.patch.diff
in: master

1 file changed

modifiedpallets/structure/src/lib.rsdiffbeforeafterboth
162 })162 })
163 }163 }
164164
165 /// Find chain of parents of current token165 /// Get the chain of parents of a token in the nesting hierarchy
166 ///166 ///
167 /// Returns the parent of the current token, than the parent of the parent and so on until token without a parent167 /// Returns an iterator of addresses of the owning tokens and the owning account,
168 /// starting from the immediate parent token, ending with the account.
168 /// is returned. Returns error if cycle is detected.169 /// Returns error if cycle is detected.
169 pub fn parent_chain(170 pub fn parent_chain(
170 mut collection: CollectionId,171 mut collection: CollectionId,
171 mut token: TokenId,172 mut token: TokenId,