From 0af4354423b30add31b238a67265e208f85da2d9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 12 Oct 2023 15:37:22 +0200 Subject: [PATCH] fix: use PolkadotConfig --- engine/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/src/main.rs b/engine/src/main.rs index 8e9690ed47a..0f78e7e4b1d 100644 --- a/engine/src/main.rs +++ b/engine/src/main.rs @@ -44,11 +44,12 @@ enum CfeStatus { } async fn ensure_cfe_version_record_up_to_date(settings: &Settings) -> anyhow::Result<()> { - use subxt::{ext::sp_core::Pair, SubstrateConfig}; - // We subxt because it is capable of dynamic decoding of values and we can't be sure that - // we can decode all types statically. + use subxt::{ext::sp_core::Pair, PolkadotConfig}; + // We use subxt because it is capable of dynamic decoding of values, which is important because + // the SC Client might be incompatible with the current runtime version. let subxt_client = - subxt::OnlineClient::::from_url(&settings.state_chain.ws_endpoint).await?; + subxt::OnlineClient::::from_url(&settings.state_chain.ws_endpoint).await?; + let signer = subxt::tx::PairSigner::new(subxt::ext::sp_core::sr25519::Pair::from_seed( &utilities::read_clean_and_decode_hex_str_file( &settings.state_chain.signing_key_file,