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

difftreelog

refactor rename to get_checked_topmost_owner

Daniel Shiposha2022-06-09parent: #29e2c31.patch.diff
in: master

2 files changed

modifiedpallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/lib.rs
+++ b/pallets/proxy-rmrk-core/src/lib.rs
@@ -462,7 +462,7 @@
 
 					let target_nft_budget = budget::Value::new(NESTING_BUDGET);
 
-					let target_nft_owner = <PalletStructure<T>>::get_checked_indirect_owner(
+					let target_nft_owner = <PalletStructure<T>>::get_checked_topmost_owner(
 						target_collection_id,
 						target_nft_id.into(),
 						Some((collection_id, nft_id)),
modifiedpallets/structure/src/lib.rsdiffbeforeafterboth
149 })149 })
150 }150 }
151151
152 pub fn get_checked_indirect_owner(152 pub fn get_checked_topmost_owner(
153 collection: CollectionId,153 collection: CollectionId,
154 token: TokenId,154 token: TokenId,
155 for_nest: Option<(CollectionId, TokenId)>,155 for_nest: Option<(CollectionId, TokenId)>,
203 None => user,203 None => user,
204 };204 };
205205
206 Self::get_checked_indirect_owner(collection, token, for_nest, budget)206 Self::get_checked_topmost_owner(collection, token, for_nest, budget)
207 .map(|indirect_owner| indirect_owner == target_parent)207 .map(|indirect_owner| indirect_owner == target_parent)
208 }208 }
209209