difftreelog
fix rename create_raw to avoid misunderstanding
in: master
3 files changed
pallets/common/src/dispatch.rsdiffbeforeafterboth79 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 }848485 /// 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,pallets/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,
runtime/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,