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 b5a7ab4d12
commit 1bfbc7fe0c
9 changed files with 250 additions and 240 deletions
+2 -1
View File
@@ -132,6 +132,7 @@ pub fn generate_extrinsic(
BlockHashCount::get().checked_next_power_of_two().map(|c| c / 2).unwrap_or(2) as u64;
let tip = 0;
let extra: SignedExtra = (
frame_system::CheckNonZeroSender::<Runtime>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckGenesis::<Runtime>::new(),
frame_system::CheckEra::<Runtime>::from(Era::mortal(period, current_block)),
@@ -145,7 +146,7 @@ pub fn generate_extrinsic(
let raw_payload = SignedPayload::from_raw(
function.clone(),
extra.clone(),
(VERSION.spec_version, genesis_block, current_block_hash, (), (), ()),
((), VERSION.spec_version, genesis_block, current_block_hash, (), (), ()),
);
let signature = raw_payload.using_encoded(|e| origin.sign(e));