difftreelog
fix CrossAccountId sponsoring
in: master
3 files changed
Cargo.lockdiffbeforeafterboth8706 "derivative",8706 "derivative",8707 "fp-rpc",8707 "fp-rpc",8708 "fp-self-contained",8708 "fp-self-contained",8709 "frame-benchmarking",8710 "frame-executive",8709 "frame-executive",8711 "frame-support",8710 "frame-support",8712 "frame-system",8711 "frame-system",8713 "frame-system-benchmarking",8714 "frame-system-rpc-runtime-api",8712 "frame-system-rpc-runtime-api",8715 "hex-literal",8716 "orml-vesting",8713 "orml-vesting",8717 "pallet-aura",8714 "pallet-aura",8718 "pallet-balances",8715 "pallet-balances",pallets/unique/src/eth/sponsoring.rsdiffbeforeafterboth24use up_sponsorship::SponsorshipHandler;24use up_sponsorship::SponsorshipHandler;25use core::marker::PhantomData;25use core::marker::PhantomData;26use core::convert::TryInto;26use core::convert::TryInto;27use up_data_structs::TokenId;27use up_data_structs::{TokenId, CreateItemData, CreateNftData};28use up_evm_mapping::EvmBackwardsAddressMapping;28use up_evm_mapping::EvmBackwardsAddressMapping;29use pallet_common::account::CrossAccountId;29use pallet_common::account::CrossAccountId;303060 let _token_id: TokenId = token_id.try_into().ok()?;60 let _token_id: TokenId = token_id.try_into().ok()?;61 withdraw_create_item::<T>(61 withdraw_create_item::<T>(62 &collection,62 &collection,63 who.as_sub(),63 &who,64 &CreateItemData::NFT(CreateNftData::default()),64 &CreateItemData::NFT(CreateNftData::default()),65 )65 )66 .map(|()| sponsor)66 .map(|()| sponsor)pallets/unique/src/sponsorship.rsdiffbeforeafterboth248 let (sponsor, collection) = load(*collection_id)?;248 let (sponsor, collection) = load(*collection_id)?;249 withdraw_create_item::<T>(&collection, who, data).map(|()| sponsor)249 withdraw_create_item::<T>(250 &collection,251 &T::CrossAccountId::from_sub(who.clone()),252 data,253 )254 .map(|()| sponsor)250 }255 }