mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user