git.delta.rocks / unique-network / refs/commits / 413ee1397f1d

difftreelog

chore cargo fmt

Grigoriy Simonov2022-09-27parent: #624d281.patch.diff
in: master

4 files changed

modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/proxy-rmrk-equip/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/unique/src/eth/mod.rsdiffbeforeafterboth
318 Ok(false)326 Ok(false)
319 }327 }
328
329 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` trait
333 .expect("Collection creation price should be convertible to u128");
334 Ok(price.into())
335 }
320}336}
321337
322/// Implements [`OnMethodCall`], which delegates call to [`EvmCollectionHelpers`]338/// Implements [`OnMethodCall`], which delegates call to [`EvmCollectionHelpers`]
modifiedruntime/common/dispatch.rsdiffbeforeafterboth
59 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 params
65 ensure!(67 ensure!(