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.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.rsdiffbeforeafterboth66 }66 }67 }67 }686869 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,