Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Companion of paritytech/substrate#10413, !
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 8, 2022
1 parent ecb22b3 commit a661473
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions node/runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ use fp_evm::FeeCalculator;
use frame_support::{log, traits::KeyOwnerProofSystem, weights::GetDispatchInfo};
use frame_system::{
offchain::{AppCrypto, CreateSignedTransaction, SendTransactionTypes, SigningTypes},
ChainContext, CheckEra, CheckGenesis, CheckNonce, CheckSpecVersion, CheckTxVersion,
CheckWeight, EnsureRoot,
ChainContext, CheckEra, CheckGenesis, CheckNonZeroSender, CheckNonce, CheckSpecVersion,
CheckTxVersion, CheckWeight, EnsureRoot,
};
use pallet_grandpa::{fg_primitives, AuthorityList as GrandpaAuthorityList};
use pallet_transaction_payment::ChargeTransactionPayment;
Expand Down Expand Up @@ -91,6 +91,7 @@ pub type Block = generic::Block<Header, UncheckedExtrinsic>;
pub type SignedBlock = generic::SignedBlock<Block>;
/// The SignedExtension to the basic transaction logic.
pub type SignedExtra = (
CheckNonZeroSender::<Runtime>,
CheckSpecVersion<Runtime>,
CheckTxVersion<Runtime>,
CheckGenesis<Runtime>,
Expand Down Expand Up @@ -271,6 +272,7 @@ where
.saturating_sub(1);
let tip = 0;
let extra: SignedExtra = (
CheckNonZeroSender::<Runtime>::new(),
CheckSpecVersion::<Runtime>::new(),
CheckTxVersion::<Runtime>::new(),
CheckGenesis::<Runtime>::new(),
Expand Down
6 changes: 4 additions & 2 deletions node/runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ use fp_evm::FeeCalculator;
use frame_support::{log, traits::KeyOwnerProofSystem, weights::GetDispatchInfo};
use frame_system::{
offchain::{AppCrypto, CreateSignedTransaction, SendTransactionTypes, SigningTypes},
ChainContext, CheckEra, CheckGenesis, CheckNonce, CheckSpecVersion, CheckTxVersion,
CheckWeight,
ChainContext, CheckEra, CheckGenesis, CheckNonZeroSender, CheckNonce, CheckSpecVersion,
CheckTxVersion, CheckWeight,
};
use pallet_grandpa::{fg_primitives, AuthorityList as GrandpaAuthorityList};
use pallet_transaction_payment::ChargeTransactionPayment;
Expand All @@ -69,6 +69,7 @@ use drml_primitives::*;
pub type Block = generic::Block<Header, UncheckedExtrinsic>;
pub type SignedBlock = generic::SignedBlock<Block>;
pub type SignedExtra = (
CheckNonZeroSender<Runtime>,
CheckSpecVersion<Runtime>,
CheckTxVersion<Runtime>,
CheckGenesis<Runtime>,
Expand Down Expand Up @@ -184,6 +185,7 @@ where
.saturating_sub(1);
let tip = 0;
let extra: SignedExtra = (
CheckNonZeroSender::<Runtime>::new(),
CheckSpecVersion::<Runtime>::new(),
CheckTxVersion::<Runtime>::new(),
CheckGenesis::<Runtime>::new(),
Expand Down

0 comments on commit a661473

Please sign in to comment.