Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Sep 12, 2024
1 parent d861876 commit 1059e0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/async/examples/benchmark_bulk_xt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/api/rpc_api/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions testing/async/examples/author_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RococoRuntimeConfig>;
type ExtrinsicAddressOf<Signer> = <Signer as SignExtrinsic<AccountId>>::ExtrinsicAddress;
Expand Down
2 changes: 1 addition & 1 deletion testing/async/examples/events_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -25,7 +26,6 @@ use substrate_api_client::{
rpc::JsonrpseeClient,
Api, FetchEvents, GetChainInfo, SubmitAndWatch, SubscribeEvents, XtStatus,
};
use rococo_runtime::RuntimeEvent;

type Hash = <RococoRuntimeConfig as Config>::Hash;

Expand Down

0 comments on commit 1059e0c

Please sign in to comment.