mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
removed extra *_RUNTIME_VERSION consts from relay code (#1330)
This commit is contained in:
committed by
Bastian Köcher
parent
e29b590785
commit
60f82cf459
@@ -84,11 +84,6 @@ macro_rules! select_bridge {
|
||||
|
||||
use bp_rialto::{PARAS_PALLET_NAME, PARAS_REGISTRAR_PALLET_NAME};
|
||||
|
||||
const RELAY_CHAIN_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> =
|
||||
Some(rialto_runtime::VERSION);
|
||||
const PARA_CHAIN_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> =
|
||||
Some(rialto_parachain_runtime::VERSION);
|
||||
|
||||
$generic
|
||||
},
|
||||
}
|
||||
@@ -99,13 +94,9 @@ impl RegisterParachain {
|
||||
/// Run the command.
|
||||
pub async fn run(self) -> anyhow::Result<()> {
|
||||
select_bridge!(self.parachain, {
|
||||
let relay_client = self
|
||||
.relay_connection
|
||||
.to_client::<Relaychain>(RELAY_CHAIN_RUNTIME_VERSION)
|
||||
.await?;
|
||||
let relay_client = self.relay_connection.to_client::<Relaychain>().await?;
|
||||
let relay_sign = self.relay_sign.to_keypair::<Relaychain>()?;
|
||||
let para_client =
|
||||
self.para_connection.to_client::<Parachain>(PARA_CHAIN_RUNTIME_VERSION).await?;
|
||||
let para_client = self.para_connection.to_client::<Parachain>().await?;
|
||||
|
||||
// hopefully we're the only actor that is registering parachain right now
|
||||
// => read next parachain id
|
||||
|
||||
Reference in New Issue
Block a user