difftreelog
refactor don't use default impl in common ops
in: master
3 files changed
pallets/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>;
pallets/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()]
}
pallets/refungible/src/common.rsdiffbeforeafterboth313 fail!(<Error<T>>::RefungibleDisallowsNesting)313 fail!(<Error<T>>::RefungibleDisallowsNesting)314 }314 }315316 fn nest(317 &self,318 _under: TokenId,319 _to_nest: (CollectionId, TokenId)320 ) {}321322 fn unnest(323 &self,324 _under: TokenId,325 _to_nest: (CollectionId, TokenId)326 ) {}315327316 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))