mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 07:31:02 +00:00
move signed extension stuff from prolkadot-core primitives to bridge-hub-cumulus-primitives (#1968)
This commit is contained in:
committed by
Bastian Köcher
parent
74b0eca59c
commit
62480cf9db
@@ -16,7 +16,7 @@
|
||||
|
||||
//! Types used to connect to the BridgeHub-Rococo-Substrate parachain.
|
||||
|
||||
use bp_bridge_hub_rococo::AVERAGE_BLOCK_INTERVAL;
|
||||
use bp_bridge_hub_rococo::{BridgeHubSignedExtension, AVERAGE_BLOCK_INTERVAL};
|
||||
use bp_messages::MessageNonce;
|
||||
use bp_runtime::ChainId;
|
||||
use codec::Encode;
|
||||
@@ -73,7 +73,7 @@ impl ChainWithTransactions for BridgeHubRococo {
|
||||
) -> Result<Self::SignedTransaction, SubstrateError> {
|
||||
let raw_payload = SignedPayload::new(
|
||||
unsigned.call,
|
||||
runtime::rewarding_bridge_signed_extension::from_params(
|
||||
runtime::SignedExtension::from_params(
|
||||
param.spec_version,
|
||||
param.transaction_version,
|
||||
unsigned.era,
|
||||
@@ -110,13 +110,7 @@ impl ChainWithTransactions for BridgeHubRococo {
|
||||
|
||||
fn parse_transaction(tx: Self::SignedTransaction) -> Option<UnsignedTransaction<Self>> {
|
||||
let extra = &tx.signature.as_ref()?.2;
|
||||
Some(
|
||||
UnsignedTransaction::new(
|
||||
tx.function,
|
||||
runtime::rewarding_bridge_signed_extension::nonce(extra),
|
||||
)
|
||||
.tip(runtime::rewarding_bridge_signed_extension::tip(extra)),
|
||||
)
|
||||
Some(UnsignedTransaction::new(tx.function, extra.nonce()).tip(extra.tip()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user