From 7563962a61ba5827620133a0ce6e0e8d61a40a67 Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Mon, 18 Jul 2022 11:18:54 +0000 Subject: [PATCH] chore: fixed code review request --- --- a/pallets/structure/src/lib.rs +++ b/pallets/structure/src/lib.rs @@ -162,10 +162,11 @@ }) } - /// Find chain of parents of current token + /// Get the chain of parents of a token in the nesting hierarchy /// - /// Returns the parent of the current token, than the parent of the parent and so on until token without a parent - /// is returned. Returns error if cycle is detected. + /// Returns an iterator of addresses of the owning tokens and the owning account, + /// starting from the immediate parent token, ending with the account. + /// Returns error if cycle is detected. pub fn parent_chain( mut collection: CollectionId, mut token: TokenId, -- gitstuff