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.rsdiffbeforeafterboth--- a/pallets/structure/src/lib.rs
+++ b/pallets/structure/src/lib.rs
@@ -149,7 +149,7 @@
})
}
- pub fn get_checked_indirect_owner(
+ pub fn get_checked_topmost_owner(
collection: CollectionId,
token: TokenId,
for_nest: Option<(CollectionId, TokenId)>,
@@ -203,7 +203,7 @@
None => user,
};
- Self::get_checked_indirect_owner(collection, token, for_nest, budget)
+ Self::get_checked_topmost_owner(collection, token, for_nest, budget)
.map(|indirect_owner| indirect_owner == target_parent)
}