mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 01:11:04 +00:00
Replace T::AccountId with <T::Lookup as StaticLookup>::Source (#11670)
* initial * update * update * update * cargo fmt * update * update benchmarks * AccountIdLookupOf<T> * cargo fmt * fix conflits * cargo fmt * update Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -80,6 +80,7 @@ pub use pallet::*;
|
||||
type BalanceOf<T> = pallet_treasury::BalanceOf<T>;
|
||||
type BountiesError<T> = pallet_bounties::Error<T>;
|
||||
type BountyIndex = pallet_bounties::BountyIndex;
|
||||
type AccountIdLookupOf<T> = <<T as frame_system::Config>::Lookup as StaticLookup>::Source;
|
||||
|
||||
/// A child bounty proposal.
|
||||
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
|
||||
@@ -315,7 +316,7 @@ pub mod pallet {
|
||||
origin: OriginFor<T>,
|
||||
#[pallet::compact] parent_bounty_id: BountyIndex,
|
||||
#[pallet::compact] child_bounty_id: BountyIndex,
|
||||
curator: <T::Lookup as StaticLookup>::Source,
|
||||
curator: AccountIdLookupOf<T>,
|
||||
#[pallet::compact] fee: BalanceOf<T>,
|
||||
) -> DispatchResult {
|
||||
let signer = ensure_signed(origin)?;
|
||||
@@ -574,7 +575,7 @@ pub mod pallet {
|
||||
origin: OriginFor<T>,
|
||||
#[pallet::compact] parent_bounty_id: BountyIndex,
|
||||
#[pallet::compact] child_bounty_id: BountyIndex,
|
||||
beneficiary: <T::Lookup as StaticLookup>::Source,
|
||||
beneficiary: AccountIdLookupOf<T>,
|
||||
) -> DispatchResult {
|
||||
let signer = ensure_signed(origin)?;
|
||||
let beneficiary = T::Lookup::lookup(beneficiary)?;
|
||||
|
||||
Reference in New Issue
Block a user