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
79 payer: Option<T::CrossAccountId>,79 payer: Option<T::CrossAccountId>,
80 data: CreateCollectionData<T::CrossAccountId>,80 data: CreateCollectionData<T::CrossAccountId>,
81 ) -> Result<CollectionId, DispatchError> {81 ) -> Result<CollectionId, DispatchError> {
82 Self::create_internal(sender, payer, false, data)82 Self::create_raw(sender, payer, false, data)
83 }83 }
8484
85 /// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode).85 /// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode).
88 /// * `payer` - If set, the user who pays the collection creation deposit.88 /// * `payer` - If set, the user who pays the collection creation deposit.
89 /// * `data` - Description of the created collection.89 /// * `data` - Description of the created collection.
90 /// * `is_special_collection` -- Whether this collection is a system one, i.e. can have special flags set.90 /// * `is_special_collection` -- Whether this collection is a system one, i.e. can have special flags set.
91 fn create_internal(91 fn create_raw(
92 sender: T::CrossAccountId,92 sender: T::CrossAccountId,
93 payer: Option<T::CrossAccountId>,93 payer: Option<T::CrossAccountId>,
94 is_special_collection: bool,94 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
--- a/runtime/common/dispatch.rs
+++ b/runtime/common/dispatch.rs
@@ -66,7 +66,7 @@
 		}
 	}
 
-	fn create_internal(
+	fn create_raw(
 		sender: T::CrossAccountId,
 		payer: Option<T::CrossAccountId>,
 		is_special_collection: bool,