mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
backport changes from polkadot-sdk (#2872)
This commit is contained in:
committed by
Bastian Köcher
parent
4bfd7807e7
commit
8bb0bfa524
@@ -16,7 +16,7 @@ codec = { package = "parity-scale-codec", version = "3.1.5" }
|
||||
env_logger = "0.11"
|
||||
futures = "0.3.30"
|
||||
hex = "0.4"
|
||||
log = "0.4.21"
|
||||
log = { workspace = true }
|
||||
num-format = "0.4"
|
||||
num-traits = "0.2"
|
||||
rbtag = "0.3"
|
||||
|
||||
@@ -125,18 +125,6 @@ impl relay_substrate_client::ChainWithTransactions for RococoAsPolkadot {
|
||||
unsigned.switch_chain(),
|
||||
)
|
||||
}
|
||||
|
||||
fn is_signed(tx: &Self::SignedTransaction) -> bool {
|
||||
relay_rococo_client::Rococo::is_signed(tx)
|
||||
}
|
||||
|
||||
fn is_signed_by(signer: &Self::AccountKeyPair, tx: &Self::SignedTransaction) -> bool {
|
||||
relay_rococo_client::Rococo::is_signed_by(signer, tx)
|
||||
}
|
||||
|
||||
fn parse_transaction(tx: Self::SignedTransaction) -> Option<UnsignedTransaction<Self>> {
|
||||
relay_rococo_client::Rococo::parse_transaction(tx).map(|tx| tx.switch_chain())
|
||||
}
|
||||
}
|
||||
|
||||
impl CliChain for RococoAsPolkadot {
|
||||
@@ -232,19 +220,6 @@ impl relay_substrate_client::ChainWithTransactions for BridgeHubRococoAsBridgeHu
|
||||
unsigned.switch_chain(),
|
||||
)
|
||||
}
|
||||
|
||||
fn is_signed(tx: &Self::SignedTransaction) -> bool {
|
||||
relay_bridge_hub_rococo_client::BridgeHubRococo::is_signed(tx)
|
||||
}
|
||||
|
||||
fn is_signed_by(signer: &Self::AccountKeyPair, tx: &Self::SignedTransaction) -> bool {
|
||||
relay_bridge_hub_rococo_client::BridgeHubRococo::is_signed_by(signer, tx)
|
||||
}
|
||||
|
||||
fn parse_transaction(tx: Self::SignedTransaction) -> Option<UnsignedTransaction<Self>> {
|
||||
relay_bridge_hub_rococo_client::BridgeHubRococo::parse_transaction(tx)
|
||||
.map(|tx| tx.switch_chain())
|
||||
}
|
||||
}
|
||||
|
||||
impl relay_substrate_client::ChainWithMessages for BridgeHubRococoAsBridgeHubPolkadot {
|
||||
|
||||
Reference in New Issue
Block a user