Skip to content

Commit d337479

Browse files
Use NoopCurrency
1 parent 7d8b8dd commit d337479

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

runtime/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ use frame_support::{
5757
pub use frame_system::Call as SystemCall;
5858
pub use pallet_timestamp::Call as TimestampCall;
5959
use pallet_transaction_payment::RuntimeDispatchInfo;
60+
use pallet_transaction_storage::NoopCurrency;
6061

6162
#[cfg(any(feature = "std", test))]
6263
pub use sp_runtime::BuildStorage;
@@ -345,6 +346,7 @@ impl pallet_sudo::Config for Runtime {
345346
impl pallet_transaction_storage::Config for Runtime {
346347
type RuntimeEvent = RuntimeEvent;
347348
type RuntimeCall = RuntimeCall;
349+
type Currency = NoopCurrency<RuntimeHoldReason>;
348350
type RuntimeHoldReason = RuntimeHoldReason;
349351
type WeightInfo = pallet_transaction_storage::weights::SubstrateWeight<Runtime>;
350352
type MaxBlockTransactions = ConstU32<512>;

runtimes/bulletin-polkadot/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ impl pallet_timestamp::Config for Runtime {
344344
impl pallet_transaction_storage::Config for Runtime {
345345
type RuntimeEvent = RuntimeEvent;
346346
type RuntimeCall = RuntimeCall;
347+
type Currency = NoopCurrency<RuntimeHoldReason>;
347348
type RuntimeHoldReason = RuntimeHoldReason;
348349
type WeightInfo = weights::pallet_transaction_storage::WeightInfo<Runtime>;
349350
type MaxBlockTransactions = ConstU32<512>;
@@ -842,6 +843,7 @@ mod benches {
842843

843844
#[cfg(feature = "runtime-benchmarks")]
844845
use benches::*;
846+
use pallet_transaction_storage::NoopCurrency;
845847

846848
impl_runtime_apis! {
847849
impl sp_api::Core<Block> for Runtime {

runtimes/bulletin-westend/src/storage.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use frame_support::{
2121
parameter_types,
2222
traits::{EitherOfDiverse, Equals},
2323
};
24+
use pallet_transaction_storage::NoopCurrency;
2425
use pallet_xcm::EnsureXcm;
2526
use sp_runtime::transaction_validity::{TransactionLongevity, TransactionPriority};
2627
use testnet_parachains_constants::westend::locations::PeopleLocation;
@@ -43,6 +44,7 @@ parameter_types! {
4344
impl pallet_transaction_storage::Config for Runtime {
4445
type RuntimeEvent = RuntimeEvent;
4546
type RuntimeCall = RuntimeCall;
47+
type Currency = NoopCurrency<RuntimeHoldReason>;
4648
type RuntimeHoldReason = RuntimeHoldReason;
4749
type WeightInfo = crate::weights::pallet_transaction_storage::WeightInfo<Runtime>;
4850
type MaxBlockTransactions = crate::ConstU32<512>;

0 commit comments

Comments
 (0)