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
462462
463 let target_nft_budget = budget::Value::new(NESTING_BUDGET);463 let target_nft_budget = budget::Value::new(NESTING_BUDGET);
464464
465 let target_nft_owner = <PalletStructure<T>>::get_checked_indirect_owner(465 let target_nft_owner = <PalletStructure<T>>::get_checked_topmost_owner(
466 target_collection_id,466 target_collection_id,
467 target_nft_id.into(),467 target_nft_id.into(),
468 Some((collection_id, nft_id)),468 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