git.delta.rocks / unique-network / refs/commits / 42b27fc67845

difftreelog

doc: minor style + structure error descriptions refactoring

Farhad Hakimov2022-07-22parent: #e684c8a.patch.diff
in: master

2 files changed

modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- 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)]
modifiedpallets/structure/src/lib.rsdiffbeforeafterboth
7878
79 #[pallet::error]79 #[pallet::error]
80 pub enum Error<T> {80 pub enum Error<T> {
81 /// While searching for the owner, encountered an already checked account, detecting a loop.81 /// While nesting, encountered an already checked account, detecting a loop.
82 OuroborosDetected,82 OuroborosDetected,
83 /// While searching for the owner, reached the depth limit.83 /// While nesting, reached the depth limit of nesting, exceeding the provided budget.
84 DepthLimit,84 DepthLimit,
85 /// While iterating over children, reached the breadth limit.85 /// While nesting, reached the breadth limit of nesting, exceeding the provided budget.
86 BreadthLimit,86 BreadthLimit,
87 /// Couldn't find the token owner that is itself a token.87 /// Couldn't find the token owner that is itself a token.
88 TokenNotFound,88 TokenNotFound,