git.delta.rocks / unique-network / refs/commits / bb64e8b60176

difftreelog

refactor don't use default impl in common ops

Daniel Shiposha2022-05-27parent: #274525a.patch.diff
in: master

3 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -1239,15 +1239,15 @@
 
 	fn nest(
 		&self,
-		_under: TokenId,
-		_to_nest: (CollectionId, TokenId)
-	) {}
+		under: TokenId,
+		to_nest: (CollectionId, TokenId)
+	);
 
 	fn unnest(
 		&self,
-		_under: TokenId,
-		_to_nest: (CollectionId, TokenId)
-	) {}
+		under: TokenId,
+		to_nest: (CollectionId, TokenId)
+	);
 
 	fn account_tokens(&self, account: T::CrossAccountId) -> Vec<TokenId>;
 	fn collection_tokens(&self) -> Vec<TokenId>;
modifiedpallets/fungible/src/common.rsdiffbeforeafterboth
298 fail!(<Error<T>>::FungibleDisallowsNesting)298 fail!(<Error<T>>::FungibleDisallowsNesting)
299 }299 }
300
301 fn nest(
302 &self,
303 _under: TokenId,
304 _to_nest: (CollectionId, TokenId)
305 ) {}
306
307 fn unnest(
308 &self,
309 _under: TokenId,
310 _to_nest: (CollectionId, TokenId)
311 ) {}
300312
301 fn collection_tokens(&self) -> Vec<TokenId> {313 fn collection_tokens(&self) -> Vec<TokenId> {
302 vec![TokenId::default()]314 vec![TokenId::default()]
modifiedpallets/refungible/src/common.rsdiffbeforeafterboth
--- a/pallets/refungible/src/common.rs
+++ b/pallets/refungible/src/common.rs
@@ -313,6 +313,18 @@
 		fail!(<Error<T>>::RefungibleDisallowsNesting)
 	}
 
+	fn nest(
+		&self,
+		_under: TokenId,
+		_to_nest: (CollectionId, TokenId)
+	) {}
+
+	fn unnest(
+		&self,
+		_under: TokenId,
+		_to_nest: (CollectionId, TokenId)
+	) {}
+
 	fn account_tokens(&self, account: T::CrossAccountId) -> Vec<TokenId> {
 		<Owned<T>>::iter_prefix((self.id, account))
 			.map(|(id, _)| id)