From 8a3ed7761929471b900506d0831e8d6569f2e142 Mon Sep 17 00:00:00 2001 From: cdamian <17934949+cdamian@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:07:48 +0100 Subject: [PATCH] transfer-allowlist: Drop custom currency ID in mock runtime --- pallets/transfer-allowlist/src/mock.rs | 27 ++------------------------ 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/pallets/transfer-allowlist/src/mock.rs b/pallets/transfer-allowlist/src/mock.rs index 7351013487..4541769887 100644 --- a/pallets/transfer-allowlist/src/mock.rs +++ b/pallets/transfer-allowlist/src/mock.rs @@ -10,6 +10,7 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. +use cfg_types::tokens::CurrencyId; use codec::{Decode, Encode, MaxEncodedLen}; use frame_support::{ parameter_types, @@ -79,30 +80,6 @@ impl frame_system::Config for Runtime { type Version = (); } -#[derive( - Clone, - Copy, - Debug, - PartialOrd, - Default, - Ord, - Encode, - Decode, - Eq, - PartialEq, - MaxEncodedLen, - TypeInfo, - Deserialize, - Serialize, -)] -pub enum CurrencyId { - #[default] - A, - B, - C, - D, -} - #[derive( Clone, Debug, @@ -145,7 +122,7 @@ impl pallet_balances::Config for Runtime { } parameter_types! { - pub const NativeCurrency: CurrencyId = CurrencyId::D; + pub const NativeCurrency: CurrencyId = CurrencyId::Native; pub const HoldId: () = (); }