From b5e8dff6d126ba94055832a0df80ca9a7b16ff46 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Fri, 22 Jul 2022 09:37:45 +0000 Subject: [PATCH] misc: fix after rebase --- --- a/pallets/unique/src/eth/mod.rs +++ b/pallets/unique/src/eth/mod.rs @@ -23,7 +23,7 @@ use pallet_evm::{OnMethodCall, PrecompileResult, account::CrossAccountId, PrecompileHandle}; use up_data_structs::{ CollectionName, CollectionDescription, CollectionTokenPrefix, CreateCollectionData, - CollectionMode, PropertyValue, CollectionTokenPrefix, + CollectionMode, PropertyValue, }; use frame_support::traits::Get; use pallet_common::{ @@ -150,7 +150,10 @@ /// @title Contract, which allows users to operate with collections #[solidity_interface(name = "CollectionHelpers", events(CollectionHelpersEvents))] -impl EvmCollectionHelpers { +impl EvmCollectionHelpers +where + T: Config + pallet_nonfungible::Config + pallet_refungible::Config +{ /// Create an NFT collection /// @param name Name of the collection /// @param description Informative description of the collection @@ -218,9 +221,16 @@ description: string, token_prefix: string, ) -> Result
{ - let (caller, name, description, token_prefix) = - convert_data::(caller, name, description, token_prefix)?; - let data = make_data::(name, CollectionMode::ReFungible, description, token_prefix)?; + let (caller, name, description, token_prefix, _base_uri) = + convert_data::(caller, name, description, token_prefix, "".into())?; + let data = make_data::( + name, + CollectionMode::ReFungible, + description, + token_prefix, + Default::default(), + false, + )?; let collection_id = >::init_collection(caller.clone(), data) .map_err(pallet_evm_coder_substrate::dispatch_to_evm::)?; -- gitstuff