From 1059e0c78273fcf44b1ff931cca830ffe4cda119 Mon Sep 17 00:00:00 2001 From: haerdib Date: Thu, 12 Sep 2024 17:36:48 +0200 Subject: [PATCH] cargo fmt --- examples/async/examples/benchmark_bulk_xt.rs | 2 +- src/api/rpc_api/events.rs | 2 +- testing/async/examples/author_tests.rs | 4 ++-- testing/async/examples/events_tests.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/async/examples/benchmark_bulk_xt.rs b/examples/async/examples/benchmark_bulk_xt.rs index 4ced0dfd3..6fbab3739 100644 --- a/examples/async/examples/benchmark_bulk_xt.rs +++ b/examples/async/examples/benchmark_bulk_xt.rs @@ -15,6 +15,7 @@ //! This example floods the node with a series of transactions. +use rococo_runtime::{BalancesCall, RuntimeCall}; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_primitives::{ @@ -23,7 +24,6 @@ use substrate_api_client::{ rpc::JsonrpseeClient, Api, SubmitExtrinsic, }; -use rococo_runtime::{BalancesCall, RuntimeCall}; // Define an extrinsic signer type which sets the generic types of the `GenericExtrinsicSigner`. // This way, the types don't have to be reassigned with every usage of this type and makes diff --git a/src/api/rpc_api/events.rs b/src/api/rpc_api/events.rs index 7ca3f5097..07d31f786 100644 --- a/src/api/rpc_api/events.rs +++ b/src/api/rpc_api/events.rs @@ -236,6 +236,7 @@ mod tests { use ac_primitives::RococoRuntimeConfig; use codec::{Decode, Encode}; use frame_metadata::RuntimeMetadataPrefixed; + use rococo_runtime::{BalancesCall, RuntimeCall, UncheckedExtrinsic}; use scale_info::TypeInfo; use sp_core::{crypto::Ss58Codec, sr25519, Bytes, H256}; use sp_runtime::{ @@ -246,7 +247,6 @@ mod tests { use sp_version::RuntimeVersion; use std::{collections::HashMap, fs}; use test_case::test_case; - use rococo_runtime::{BalancesCall, RuntimeCall, UncheckedExtrinsic}; #[derive(Clone, Copy, Debug, PartialEq, Decode, Encode, TypeInfo)] enum Event { diff --git a/testing/async/examples/author_tests.rs b/testing/async/examples/author_tests.rs index adce00e7e..5dfd43df5 100644 --- a/testing/async/examples/author_tests.rs +++ b/testing/async/examples/author_tests.rs @@ -15,17 +15,17 @@ //! Tests for the author rpc interface functions. +use rococo_runtime::{BalancesCall, RuntimeCall}; use sp_core::{Encode, H256}; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_node_api::RawEventDetails, ac_primitives::{ - Config, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, RococoRuntimeConfig, + Config, ExtrinsicSigner as GenericExtrinsicSigner, RococoRuntimeConfig, SignExtrinsic, }, rpc::{HandleSubscription, JsonrpseeClient}, Api, SubmitAndWatch, SubmitExtrinsic, TransactionStatus, XtStatus, }; -use rococo_runtime::{BalancesCall, RuntimeCall}; type ExtrinsicSigner = GenericExtrinsicSigner; type ExtrinsicAddressOf = >::ExtrinsicAddress; diff --git a/testing/async/examples/events_tests.rs b/testing/async/examples/events_tests.rs index c1e8c09f9..03f9c1f8f 100644 --- a/testing/async/examples/events_tests.rs +++ b/testing/async/examples/events_tests.rs @@ -17,6 +17,7 @@ use codec::Decode; use frame_support::dispatch::DispatchInfo; +use rococo_runtime::RuntimeEvent; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_node_api::{EventDetails, StaticEvent}, @@ -25,7 +26,6 @@ use substrate_api_client::{ rpc::JsonrpseeClient, Api, FetchEvents, GetChainInfo, SubmitAndWatch, SubscribeEvents, XtStatus, }; -use rococo_runtime::RuntimeEvent; type Hash = ::Hash;