Skip to content

Commit 25a3c8b

Browse files
committed
fix tests
1 parent 744904a commit 25a3c8b

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

testing/async/examples/author_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ use substrate_api_client::{
2525
rpc::{HandleSubscription, JsonrpseeClient},
2626
Api, SubmitAndWatch, SubmitExtrinsic, TransactionStatus, XtStatus,
2727
};
28-
use westend_runtime::{AccountId, BalancesCall, RuntimeCall};
28+
use westend_runtime::{BalancesCall, RuntimeCall};
2929

3030
type ExtrinsicSigner = GenericExtrinsicSigner<WestendRuntimeConfig>;
3131
type ExtrinsicAddressOf<Signer> = <Signer as SignExtrinsic<AccountId>>::ExtrinsicAddress;
3232
type Hash = <WestendRuntimeConfig as Config>::Hash;
3333
type MyApi = Api<WestendRuntimeConfig, JsonrpseeClient>;
3434
type Index = <WestendRuntimeConfig as Config>::Index;
35+
type AccountId = <WestendRuntimeConfig as Config>::AccountId;
3536

3637
#[tokio::main]
3738
async fn main() {

testing/async/examples/pallet_contract_tests.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818
use codec::Decode;
1919
use sp_keyring::AccountKeyring;
2020
use substrate_api_client::{
21-
ac_compose_macros::primitives::WestendRuntimeConfig, ac_node_api::StaticEvent,
22-
ac_primitives::Determinism, extrinsic::ContractsExtrinsics, rpc::JsonrpseeClient, Api,
23-
SubmitAndWatch, XtStatus,
21+
ac_compose_macros::primitives::{Config, WestendRuntimeConfig},
22+
ac_node_api::StaticEvent,
23+
ac_primitives::Determinism,
24+
extrinsic::ContractsExtrinsics,
25+
rpc::JsonrpseeClient,
26+
Api, SubmitAndWatch, XtStatus,
2427
};
25-
use westend_runtime::AccountId;
28+
29+
type AccountId = <WestendRuntimeConfig as Config>::AccountId;
2630

2731
// To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet.
2832
// Therefore, we need to use the `AssetRuntimeConfig` in this example.

testing/async/examples/state_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async fn main() {
5858
let _account_info: AccountData =
5959
api.get_storage_map("System", "Account", &alice, None).await.unwrap().unwrap();
6060

61-
let era_stakers: ErasStakers = api
61+
let _era_stakers: ErasStakers = api
6262
.get_storage_double_map(
6363
"Staking",
6464
"ErasStakersOverview",

0 commit comments

Comments
 (0)