2
2
//!
3
3
//! Should only be used for benchmarking as it may break in other contexts.
4
4
5
- use crate :: service :: Client ;
5
+ use crate :: client :: FullClient ;
6
6
7
7
use node_subtensor_runtime as runtime;
8
8
use node_subtensor_runtime:: check_nonce;
@@ -21,12 +21,12 @@ use std::{sync::Arc, time::Duration};
21
21
//
22
22
// Note: Should only be used for benchmarking.
23
23
pub struct RemarkBuilder {
24
- client : Arc < Client > ,
24
+ client : Arc < FullClient > ,
25
25
}
26
26
27
27
impl RemarkBuilder {
28
28
// Creates a new [`Self`] from the given client.
29
- pub fn new ( client : Arc < Client > ) -> Self {
29
+ pub fn new ( client : Arc < FullClient > ) -> Self {
30
30
Self { client }
31
31
}
32
32
}
@@ -58,14 +58,14 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for RemarkBuilder {
58
58
//
59
59
// Note: Should only be used for benchmarking.
60
60
pub struct TransferKeepAliveBuilder {
61
- client : Arc < Client > ,
61
+ client : Arc < FullClient > ,
62
62
dest : AccountId ,
63
63
value : Balance ,
64
64
}
65
65
66
66
impl TransferKeepAliveBuilder {
67
67
// Creates a new [`Self`] from the given client.
68
- pub fn new ( client : Arc < Client > , dest : AccountId , value : Balance ) -> Self {
68
+ pub fn new ( client : Arc < FullClient > , dest : AccountId , value : Balance ) -> Self {
69
69
Self {
70
70
client,
71
71
dest,
@@ -105,7 +105,7 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder {
105
105
//
106
106
// Note: Should only be used for benchmarking.
107
107
pub fn create_benchmark_extrinsic (
108
- client : & Client ,
108
+ client : & FullClient ,
109
109
sender : sp_core:: sr25519:: Pair ,
110
110
call : runtime:: RuntimeCall ,
111
111
nonce : u32 ,
0 commit comments