Skip to content

Commit

Permalink
fix block-rewards tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed May 28, 2024
1 parent 1bd859b commit d8e0273
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pallets/block-rewards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ cfg-mocks = { workspace = true, default-features = true }
orml-tokens = { workspace = true, default-features = true }
orml-traits = { workspace = true, default-features = true }
pallet-balances = { workspace = true, default-features = true }
pallet-restricted-tokens = { workspace = true, default-features = true }
pallet-rewards = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
sp-io = { workspace = true, default-features = true }
Expand Down
27 changes: 1 addition & 26 deletions pallets/block-rewards/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ frame_support::construct_runtime!(
pub enum Test {
System: frame_system,
Balances: pallet_balances,
Tokens: pallet_restricted_tokens,
OrmlTokens: orml_tokens,
Tokens: orml_tokens,
Rewards: pallet_rewards::<Instance1>,
Session: pallet_session,
MockTime: cfg_mocks::pallet_mock_time,
Expand Down Expand Up @@ -120,30 +119,6 @@ impl orml_tokens::Config for Test {
type WeightInfo = ();
}

impl pallet_restricted_tokens::Config for Test {
type Balance = Balance;
type CurrencyId = CurrencyId;
type Fungibles = OrmlTokens;
type NativeFungible = Balances;
type NativeToken = NativeToken;
type PreCurrency = cfg_traits::Always;
type PreExtrTransfer = cfg_traits::Always;
type PreFungibleInspect = pallet_restricted_tokens::FungibleInspectPassthrough;
type PreFungibleInspectHold = cfg_traits::Always;
type PreFungibleMutate = cfg_traits::Always;
type PreFungibleMutateHold = cfg_traits::Always;
type PreFungibleTransfer = cfg_traits::Always;
type PreFungiblesInspect = pallet_restricted_tokens::FungiblesInspectPassthrough;
type PreFungiblesInspectHold = cfg_traits::Always;
type PreFungiblesMutate = cfg_traits::Always;
type PreFungiblesMutateHold = cfg_traits::Always;
type PreFungiblesTransfer = cfg_traits::Always;
type PreFungiblesUnbalanced = cfg_traits::Always;
type PreReservableCurrency = cfg_traits::Always;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
}

frame_support::parameter_types! {
pub const RewardsPalletId: PalletId = cfg_types::ids::BLOCK_REWARDS_PALLET_ID;
pub const NativeToken: CurrencyId = CurrencyId::Native;
Expand Down

0 comments on commit d8e0273

Please sign in to comment.