mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 19:01:08 +00:00
Add CheckNonZeroSender to runtime configs (#847)
* Add CheckNonZeroSender to runtime configs * cargo update -p polkadot-primitives * Fixes * Fixes
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user