difftreelog
chore cargo fmt
in: master
4 files changed
pallets/foreign-assets/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/proxy-rmrk-equip/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/unique/src/eth/mod.rsdiffbeforeafterboth318 Ok(false)326 Ok(false)319 }327 }328329 fn collection_creation_fee(&self) -> Result<value> {330 let price: u128 = T::CollectionCreationPrice::get()331 .try_into()332 .map_err(|_| ()) // workaround for `expect` requiring `Debug` trait333 .expect("Collection creation price should be convertible to u128");334 Ok(price.into())335 }320}336}321337322/// Implements [`OnMethodCall`], which delegates call to [`EvmCollectionHelpers`]338/// Implements [`OnMethodCall`], which delegates call to [`EvmCollectionHelpers`]runtime/common/dispatch.rsdiffbeforeafterboth59 data: CreateCollectionData<T::AccountId>,59 data: CreateCollectionData<T::AccountId>,60 ) -> Result<CollectionId, DispatchError> {60 ) -> Result<CollectionId, DispatchError> {61 let id = match data.mode {61 let id = match data.mode {62 CollectionMode::NFT => <PalletNonfungible<T>>::init_collection(sender, payer, data, false)?,62 CollectionMode::NFT => {63 <PalletNonfungible<T>>::init_collection(sender, payer, data, false)?64 }63 CollectionMode::Fungible(decimal_points) => {65 CollectionMode::Fungible(decimal_points) => {64 // check params66 // check params65 ensure!(67 ensure!(