diff --git a/testing/async/examples/author_tests.rs b/testing/async/examples/author_tests.rs index 797778af3..0c7e96daf 100644 --- a/testing/async/examples/author_tests.rs +++ b/testing/async/examples/author_tests.rs @@ -25,13 +25,14 @@ use substrate_api_client::{ rpc::{HandleSubscription, JsonrpseeClient}, Api, SubmitAndWatch, SubmitExtrinsic, TransactionStatus, XtStatus, }; -use westend_runtime::{AccountId, BalancesCall, RuntimeCall}; +use westend_runtime::{BalancesCall, RuntimeCall}; type ExtrinsicSigner = GenericExtrinsicSigner; type ExtrinsicAddressOf = >::ExtrinsicAddress; type Hash = ::Hash; type MyApi = Api; type Index = ::Index; +type AccountId = ::AccountId; #[tokio::main] async fn main() { diff --git a/testing/async/examples/pallet_contract_tests.rs b/testing/async/examples/pallet_contract_tests.rs index f5d5122d7..38a16b7e2 100644 --- a/testing/async/examples/pallet_contract_tests.rs +++ b/testing/async/examples/pallet_contract_tests.rs @@ -18,11 +18,15 @@ use codec::Decode; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_compose_macros::primitives::WestendRuntimeConfig, ac_node_api::StaticEvent, - ac_primitives::Determinism, extrinsic::ContractsExtrinsics, rpc::JsonrpseeClient, Api, - SubmitAndWatch, XtStatus, + ac_compose_macros::primitives::{Config, WestendRuntimeConfig}, + ac_node_api::StaticEvent, + ac_primitives::Determinism, + extrinsic::ContractsExtrinsics, + rpc::JsonrpseeClient, + Api, SubmitAndWatch, XtStatus, }; -use westend_runtime::AccountId; + +type AccountId = ::AccountId; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. diff --git a/testing/async/examples/state_tests.rs b/testing/async/examples/state_tests.rs index 808766256..84ae3b139 100644 --- a/testing/async/examples/state_tests.rs +++ b/testing/async/examples/state_tests.rs @@ -58,7 +58,7 @@ async fn main() { let _account_info: AccountData = api.get_storage_map("System", "Account", &alice, None).await.unwrap().unwrap(); - let era_stakers: ErasStakers = api + let _era_stakers: ErasStakers = api .get_storage_double_map( "Staking", "ErasStakersOverview",