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
--- a/pallets/fungible/src/common.rs
+++ b/pallets/fungible/src/common.rs
@@ -298,6 +298,18 @@
 		fail!(<Error<T>>::FungibleDisallowsNesting)
 	}
 
+	fn nest(
+		&self,
+		_under: TokenId,
+		_to_nest: (CollectionId, TokenId)
+	) {}
+
+	fn unnest(
+		&self,
+		_under: TokenId,
+		_to_nest: (CollectionId, TokenId)
+	) {}
+
 	fn collection_tokens(&self) -> Vec<TokenId> {
 		vec![TokenId::default()]
 	}
modifiedpallets/refungible/src/common.rsdiffbeforeafterboth
313 fail!(<Error<T>>::RefungibleDisallowsNesting)313 fail!(<Error<T>>::RefungibleDisallowsNesting)
314 }314 }
315
316 fn nest(
317 &self,
318 _under: TokenId,
319 _to_nest: (CollectionId, TokenId)
320 ) {}
321
322 fn unnest(
323 &self,
324 _under: TokenId,
325 _to_nest: (CollectionId, TokenId)
326 ) {}
315327
316 fn account_tokens(&self, account: T::CrossAccountId) -> Vec<TokenId> {328 fn account_tokens(&self, account: T::CrossAccountId) -> Vec<TokenId> {
317 <Owned<T>>::iter_prefix((self.id, account))329 <Owned<T>>::iter_prefix((self.id, account))