git.delta.rocks / unique-network / refs/commits / 30ec3c77e171

difftreelog

fix rename create_raw to avoid misunderstanding

Daniel Shiposha2023-10-25parent: #f92a07b.patch.diff
in: master

3 files changed

modifiedpallets/common/src/dispatch.rsdiffbeforeafterboth
--- a/pallets/common/src/dispatch.rs
+++ b/pallets/common/src/dispatch.rs
@@ -79,7 +79,7 @@
 		payer: Option<T::CrossAccountId>,
 		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
-		Self::create_internal(sender, payer, false, data)
+		Self::create_raw(sender, payer, false, data)
 	}
 
 	/// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode).
@@ -88,7 +88,7 @@
 	/// * `payer` - If set, the user who pays the collection creation deposit.
 	/// * `data` - Description of the created collection.
 	/// * `is_special_collection` -- Whether this collection is a system one, i.e. can have special flags set.
-	fn create_internal(
+	fn create_raw(
 		sender: T::CrossAccountId,
 		payer: Option<T::CrossAccountId>,
 		is_special_collection: bool,
modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
--- a/pallets/foreign-assets/src/lib.rs
+++ b/pallets/foreign-assets/src/lib.rs
@@ -156,7 +156,7 @@
 
 			let payer = None;
 			let is_special_collection = true;
-			let collection_id = T::CollectionDispatch::create_internal(
+			let collection_id = T::CollectionDispatch::create_raw(
 				foreign_collection_owner,
 				payer,
 				is_special_collection,
modifiedruntime/common/dispatch.rsdiffbeforeafterboth
66 }66 }
67 }67 }
6868
69 fn create_internal(69 fn create_raw(
70 sender: T::CrossAccountId,70 sender: T::CrossAccountId,
71 payer: Option<T::CrossAccountId>,71 payer: Option<T::CrossAccountId>,
72 is_special_collection: bool,72 is_special_collection: bool,