Commit 96bc2ad7 authored by David's avatar David
Browse files

fmt

parent 4de59b3a
Pipeline #165436 failed with stages
in 10 minutes and 22 seconds
......@@ -19,9 +19,9 @@
use crate::{
prelude::*, rpc_helpers::*, signer::Signer, DryRunConfig, Error, SharedConfig, WsClient,
};
use jsonrpsee::rpc_params;
use codec::Encode;
use frame_support::traits::Currency;
use jsonrpsee::rpc_params;
/// Forcefully create the snapshot. This can be used to compute the election at anytime.
fn force_create_snapshot<T: EPM::Config>(ext: &mut Ext) -> Result<(), Error<T>> {
......
......@@ -43,7 +43,7 @@ use frame_support::traits::Get;
use jsonrpsee::ws_client::{WsClient, WsClientBuilder};
use remote_externalities::{Builder, Mode, OnlineConfig};
use sp_npos_elections::ExtendedBalance;
use sp_runtime::{DeserializeOwned, traits::Block as BlockT};
use sp_runtime::{traits::Block as BlockT, DeserializeOwned};
use structopt::StructOpt;
pub(crate) enum AnyRuntime {
......@@ -493,13 +493,10 @@ pub(crate) async fn check_versions<T: frame_system::Config + EPM::Config>(
client: &WsClient,
) -> Result<(), Error<T>> {
let linked_version = T::Version::get();
let on_chain_version = rpc_helpers::rpc::<sp_version::RuntimeVersion>(
client,
"state_getRuntimeVersion",
None,
)
.await
.expect("runtime version RPC should always work; qed");
let on_chain_version =
rpc_helpers::rpc::<sp_version::RuntimeVersion>(client, "state_getRuntimeVersion", None)
.await
.expect("runtime version RPC should always work; qed");
log::debug!(target: LOG_TARGET, "linked version {:?}", linked_version);
log::debug!(target: LOG_TARGET, "on-chain version {:?}", on_chain_version);
......
......@@ -16,13 +16,13 @@
//! The monitor command.
use crate::{
prelude::*, rpc_helpers::*, signer::Signer, Error, MonitorConfig, SharedConfig,
};
use crate::{prelude::*, rpc_helpers::*, signer::Signer, Error, MonitorConfig, SharedConfig};
use codec::Encode;
use jsonrpsee::types::{traits::SubscriptionClient, Subscription};
use jsonrpsee::ws_client::WsClient;
use jsonrpsee::rpc_params;
use jsonrpsee::{
rpc_params,
types::{traits::SubscriptionClient, Subscription},
ws_client::WsClient,
};
use sc_transaction_pool_api::TransactionStatus;
use sp_core::storage::StorageKey;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment