Add CheckNonZeroSender to runtime configs (#847)

* Add CheckNonZeroSender to runtime configs

* cargo update -p polkadot-primitives

* Fixes

* Fixes
This commit is contained in:
Keith Yeung
2021-12-09 05:53:51 -08:00
committed by GitHub
parent b5135277f4
commit 9e9ff9e5d0
9 changed files with 250 additions and 240 deletions
+2 -1
View File
@@ -701,6 +701,7 @@ pub fn construct_extrinsic(
.unwrap_or(2) as u64;
let tip = 0;
let extra: runtime::SignedExtra = (
frame_system::CheckNonZeroSender::<runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<runtime::Runtime>::new(),
frame_system::CheckGenesis::<runtime::Runtime>::new(),
frame_system::CheckEra::<runtime::Runtime>::from(generic::Era::mortal(
@@ -714,7 +715,7 @@ pub fn construct_extrinsic(
let raw_payload = runtime::SignedPayload::from_raw(
function.clone(),
extra.clone(),
(runtime::VERSION.spec_version, genesis_block, current_block_hash, (), (), ()),
((), runtime::VERSION.spec_version, genesis_block, current_block_hash, (), (), ()),
);
let signature = raw_payload.using_encoded(|e| caller.sign(e));
runtime::UncheckedExtrinsic::new_signed(