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
--- 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)
 	}