From a6614734ebb262bc670af6cd22184574a234efe9 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Thu, 8 Sep 2022 18:24:36 +0800 Subject: [PATCH] Companion of paritytech/substrate#10413, ! --- node/runtime/pangolin/src/lib.rs | 6 ++++-- node/runtime/pangoro/src/lib.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/node/runtime/pangolin/src/lib.rs b/node/runtime/pangolin/src/lib.rs index 117f2d4305..1441d40f4d 100644 --- a/node/runtime/pangolin/src/lib.rs +++ b/node/runtime/pangolin/src/lib.rs @@ -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; @@ -91,6 +91,7 @@ pub type Block = generic::Block; pub type SignedBlock = generic::SignedBlock; /// The SignedExtension to the basic transaction logic. pub type SignedExtra = ( + CheckNonZeroSender::, CheckSpecVersion, CheckTxVersion, CheckGenesis, @@ -271,6 +272,7 @@ where .saturating_sub(1); let tip = 0; let extra: SignedExtra = ( + CheckNonZeroSender::::new(), CheckSpecVersion::::new(), CheckTxVersion::::new(), CheckGenesis::::new(), diff --git a/node/runtime/pangoro/src/lib.rs b/node/runtime/pangoro/src/lib.rs index 2e757914d3..f94e99193c 100644 --- a/node/runtime/pangoro/src/lib.rs +++ b/node/runtime/pangoro/src/lib.rs @@ -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; @@ -69,6 +69,7 @@ use drml_primitives::*; pub type Block = generic::Block; pub type SignedBlock = generic::SignedBlock; pub type SignedExtra = ( + CheckNonZeroSender, CheckSpecVersion, CheckTxVersion, CheckGenesis, @@ -184,6 +185,7 @@ where .saturating_sub(1); let tip = 0; let extra: SignedExtra = ( + CheckNonZeroSender::::new(), CheckSpecVersion::::new(), CheckTxVersion::::new(), CheckGenesis::::new(),