difftreelog
chore fix cargo fmt
in: master
4 files changed
node/cli/src/command.rsdiffbeforeafterboth343435use crate::{35use crate::{36 chain_spec::{36 chain_spec::{self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification},37 self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification, default_runtime,38 },39 cli::{Cli, RelayChainCli, Subcommand},37 cli::{Cli, RelayChainCli, Subcommand},40 service::{new_partial, start_node, start_dev_node},38 service::{new_partial, start_node, start_dev_node},46#[cfg(feature = "quartz-runtime")]44#[cfg(feature = "quartz-runtime")]47use crate::service::QuartzRuntimeExecutor;45use crate::service::QuartzRuntimeExecutor;484649use crate::service::{OpalRuntimeExecutor, DefaultRuntimeExecutor};47use crate::service::OpalRuntimeExecutor;504851use codec::Encode;49use codec::Encode;52use cumulus_primitives_core::ParaId;50use cumulus_primitives_core::ParaId;node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -46,7 +46,6 @@
use cumulus_relay_chain_rpc_interface::{RelayChainRpcInterface, create_client_and_start_worker};
// Substrate Imports
-use sc_client_api::ExecutorProvider;
use sc_executor::NativeElseWasmExecutor;
use sc_executor::NativeExecutionDispatch;
use sc_network::{NetworkService, NetworkBlock};
@@ -83,15 +82,6 @@
/// Opal native executor instance.
pub struct OpalRuntimeExecutor;
-
-#[cfg(feature = "unique-runtime")]
-pub type DefaultRuntimeExecutor = UniqueRuntimeExecutor;
-
-#[cfg(all(not(feature = "unique-runtime"), feature = "quartz-runtime"))]
-pub type DefaultRuntimeExecutor = QuartzRuntimeExecutor;
-
-#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]
-pub type DefaultRuntimeExecutor = OpalRuntimeExecutor;
#[cfg(feature = "unique-runtime")]
impl NativeExecutionDispatch for UniqueRuntimeExecutor {
pallets/common/src/erc.rsdiffbeforeafterboth--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -27,7 +27,7 @@
use sp_std::vec::Vec;
use up_data_structs::{
AccessMode, CollectionMode, CollectionPermissions, OwnerRestrictedSet, Property,
- SponsoringRateLimit, SponsorshipState, PropertyKey,
+ SponsoringRateLimit, SponsorshipState,
};
use alloc::format;
@@ -106,7 +106,6 @@
caller: caller,
properties: Vec<(string, bytes)>,
) -> Result<void> {
-
let caller = T::CrossAccountId::from_eth(caller);
let properties = properties
pallets/unique/src/eth/mod.rsdiffbeforeafterboth--- a/pallets/unique/src/eth/mod.rs
+++ b/pallets/unique/src/eth/mod.rs
@@ -26,19 +26,15 @@
use pallet_common::{
CollectionById,
dispatch::CollectionDispatch,
- erc::{
- static_property::key,
- CollectionHelpersEvents,
- },
+ erc::{static_property::key, CollectionHelpersEvents},
Pallet as PalletCommon,
-
};
use pallet_evm::{account::CrossAccountId, OnMethodCall, PrecompileHandle, PrecompileResult};
use pallet_evm_coder_substrate::{dispatch_to_evm, SubstrateRecorder, WithRecorder};
use sp_std::vec;
use up_data_structs::{
CollectionDescription, CollectionMode, CollectionName, CollectionTokenPrefix,
- CreateCollectionData, PropertyValue,
+ CreateCollectionData,
};
use crate::{weights::WeightInfo, Config, SelfWeightOf};
@@ -86,23 +82,6 @@
error_field_too_long(stringify!(token_prefix), CollectionTokenPrefix::bound())
})?;
Ok((caller, name, description, token_prefix))
-}
-
-fn create_refungible_collection_internal<T: Config>(
- caller: caller,
- value: value,
- name: string,
- description: string,
- token_prefix: string,
-) -> Result<address> {
- self::create_collection_internal::<T>(
- caller,
- value,
- name,
- CollectionMode::ReFungible,
- description,
- token_prefix
- )
}
#[inline(always)]
@@ -233,27 +212,6 @@
name: string,
description: string,
token_prefix: string,
- ) -> Result<address> {
- create_collection_internal::<T>(
- caller,
- value,
- name,
- CollectionMode::ReFungible,
- description,
- token_prefix,
- )
- }
-
- #[weight(<SelfWeightOf<T>>::create_collection())]
- #[solidity(rename_selector = "createERC721MetadataCompatibleRFTCollection")]
- fn create_refungible_collection_with_properties(
- &mut self,
- caller: caller,
- value: value,
- name: string,
- description: string,
- token_prefix: string,
- base_uri: string,
) -> Result<address> {
create_collection_internal::<T>(
caller,