mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 09:51:02 +00:00
Add integrity check for signed extensions (#1780)
* Add integrity check for signed extensions * Remove unneeded type specification
This commit is contained in:
committed by
Bastian Köcher
parent
4cdb85247e
commit
2ff3a7aa38
@@ -19,7 +19,7 @@
|
||||
pub mod runtime_wrapper;
|
||||
|
||||
use bp_messages::MessageNonce;
|
||||
use bp_polkadot_core::{DefaultSignedExtension, PolkadotSignedExtension};
|
||||
use bp_polkadot_core::PolkadotSignedExtension;
|
||||
use codec::Encode;
|
||||
use relay_substrate_client::{
|
||||
Chain, ChainWithBalances, ChainWithMessages, ChainWithTransactions, Error as SubstrateError,
|
||||
@@ -79,7 +79,7 @@ impl ChainWithMessages for RialtoParachain {
|
||||
impl ChainWithTransactions for RialtoParachain {
|
||||
type AccountKeyPair = sp_core::sr25519::Pair;
|
||||
type SignedTransaction =
|
||||
bp_polkadot_core::UncheckedExtrinsic<Self::Call, DefaultSignedExtension>;
|
||||
bp_polkadot_core::UncheckedExtrinsic<Self::Call, bp_rialto_parachain::SignedExtension>;
|
||||
|
||||
fn sign_transaction(
|
||||
param: SignParam<Self>,
|
||||
@@ -87,7 +87,7 @@ impl ChainWithTransactions for RialtoParachain {
|
||||
) -> Result<Self::SignedTransaction, SubstrateError> {
|
||||
let raw_payload = SignedPayload::new(
|
||||
unsigned.call,
|
||||
bp_polkadot_core::DefaultSignedExtension::from_params(
|
||||
bp_rialto_parachain::SignedExtension::from_params(
|
||||
param.spec_version,
|
||||
param.transaction_version,
|
||||
unsigned.era,
|
||||
|
||||
Reference in New Issue
Block a user