difftreelog
refactor rename to get_checked_topmost_owner
in: master
2 files changed
pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth462462463 let target_nft_budget = budget::Value::new(NESTING_BUDGET);463 let target_nft_budget = budget::Value::new(NESTING_BUDGET);464464465 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)),pallets/structure/src/lib.rsdiffbeforeafterboth149 })149 })150 }150 }151151152 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 };205205206 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