From 42b27fc67845cf987ee2f7fc3df409f864304f91 Mon Sep 17 00:00:00 2001 From: Farhad Hakimov Date: Fri, 22 Jul 2022 12:22:10 +0000 Subject: [PATCH] doc: minor style + structure error descriptions refactoring --- --- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -206,14 +206,14 @@ OnEmpty = up_data_structs::TokenProperties, >; - /// Custom data of a token that is serialized to bytes, - /// primarily reserved for on-chain operations, + /// Custom data of a token that is serialized to bytes, + /// primarily reserved for on-chain operations, /// normally obscured from the external users. - /// - /// Auxiliary properties are slightly different from - /// usual [`TokenProperties`] due to an unlimited number + /// + /// Auxiliary properties are slightly different from + /// usual [`TokenProperties`] due to an unlimited number /// and separately stored and written-to key-value pairs. - /// + /// /// Currently used to store RMRK data. #[pallet::storage] #[pallet::getter(fn token_aux_property)] --- a/pallets/structure/src/lib.rs +++ b/pallets/structure/src/lib.rs @@ -78,11 +78,11 @@ #[pallet::error] pub enum Error { - /// While searching for the owner, encountered an already checked account, detecting a loop. + /// While nesting, encountered an already checked account, detecting a loop. OuroborosDetected, - /// While searching for the owner, reached the depth limit. + /// While nesting, reached the depth limit of nesting, exceeding the provided budget. DepthLimit, - /// While iterating over children, reached the breadth limit. + /// While nesting, reached the breadth limit of nesting, exceeding the provided budget. BreadthLimit, /// Couldn't find the token owner that is itself a token. TokenNotFound, -- gitstuff