Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugrazoid committed Mar 6, 2023
1 parent c130262 commit 3ee4e97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ impl pallet_utility::Config for Runtime {
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
type CallFilter = Everything;
}

parameter_types! {
Expand Down
5 changes: 3 additions & 2 deletions frame/contracts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ use frame_support::{
parameter_types,
storage::child,
traits::{
ConstU32, ConstU64, Contains, Currency, ExistenceRequirement, Get, LockableCurrency,
OnIdle, OnInitialize, ReservableCurrency, WithdrawReasons,
ConstU32, ConstU64, Contains, Currency, Everything, ExistenceRequirement, Get,
LockableCurrency, OnIdle, OnInitialize, ReservableCurrency, WithdrawReasons,
},
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
};
Expand Down Expand Up @@ -331,6 +331,7 @@ impl pallet_utility::Config for Test {
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = ();
type CallFilter = Everything;
}
parameter_types! {
pub MySchedule: Schedule<Test> = {
Expand Down
3 changes: 2 additions & 1 deletion frame/proxy/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use codec::{Decode, Encode};
use frame_support::{
assert_noop, assert_ok,
dispatch::DispatchError,
traits::{ConstU32, ConstU64, Contains},
traits::{ConstU32, ConstU64, Contains, Everything},
RuntimeDebug,
};
use sp_core::H256;
Expand Down Expand Up @@ -94,6 +94,7 @@ impl pallet_utility::Config for Test {
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = ();
type CallFilter = Everything;
}

#[derive(
Expand Down
3 changes: 2 additions & 1 deletion frame/treasury/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use frame_support::{
assert_err_ignore_postinfo, assert_noop, assert_ok,
pallet_prelude::GenesisBuild,
parameter_types,
traits::{ConstU32, ConstU64, OnInitialize},
traits::{ConstU32, ConstU64, Everything, OnInitialize},
PalletId,
};

Expand Down Expand Up @@ -97,6 +97,7 @@ impl pallet_utility::Config for Test {
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = ();
type CallFilter = Everything;
}

parameter_types! {
Expand Down

0 comments on commit 3ee4e97

Please sign in to comment.