difftreelog
fix rename create_raw to avoid misunderstanding
in: master
3 files changed
pallets/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,
pallets/foreign-assets/src/lib.rsdiffbeforeafterboth156156157 let payer = None;157 let payer = None;158 let is_special_collection = true;158 let is_special_collection = true;159 let collection_id = T::CollectionDispatch::create_internal(159 let collection_id = T::CollectionDispatch::create_raw(160 foreign_collection_owner,160 foreign_collection_owner,161 payer,161 payer,162 is_special_collection,162 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,