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.rsdiffbeforeafterboth298 fail!(<Error<T>>::FungibleDisallowsNesting)298 fail!(<Error<T>>::FungibleDisallowsNesting)299 }299 }300301 fn nest(302 &self,303 _under: TokenId,304 _to_nest: (CollectionId, TokenId)305 ) {}306307 fn unnest(308 &self,309 _under: TokenId,310 _to_nest: (CollectionId, TokenId)311 ) {}300312301 fn collection_tokens(&self) -> Vec<TokenId> {313 fn collection_tokens(&self) -> Vec<TokenId> {302 vec![TokenId::default()]314 vec![TokenId::default()]pallets/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)