Skip to content

Commit

Permalink
transfer-allowlist: Drop custom currency ID in mock runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Nov 30, 2023
1 parent 13bef0f commit 8a3ed77
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions pallets/transfer-allowlist/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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: () = ();
}

Expand Down

0 comments on commit 8a3ed77

Please sign in to comment.