From 10c381b426801d64ec3dcf8623de6b7e279067a2 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Thu, 30 Jul 2020 17:27:01 +0000 Subject: [PATCH] Fix merge problems --- --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -221,7 +221,7 @@ decimal_points: decimal_points, token_prefix: prefix, next_item_id: next_id, - custom_data_size: custom_data_sz, + custom_data_size: custom_data_size, sponsor: T::AccountId::default(), unconfirmed_sponsor: T::AccountId::default(), }; @@ -344,10 +344,8 @@ Ok(()) } - - #[weight = 0] - pub fn create_item(origin, collection_id: u64, properties: Vec) -> DispatchResult { + pub fn create_item(origin, collection_id: u64, properties: Vec, owner: T::AccountId) -> DispatchResult { let sender = ensure_signed(origin)?; @@ -736,10 +734,10 @@ // Determine who is paying transaction fee based on ecnomic model // Parse call to extract collection ID and access collection sponsor let sponsor: T::AccountId = match call.is_sub_type() { - Some(Call::create_item(collection_id, _properties)) => { + Some(Call::create_item(collection_id, _properties, _owner)) => { >::get(collection_id).sponsor }, - Some(Call::transfer(collection_id, _item_id, _new_owner)) => { + Some(Call::transfer(_new_owner, collection_id, _item_id, _value)) => { >::get(collection_id).sponsor }, -- gitstuff