File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
mithril-client-cli/src/commands Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use mithril_client::{ClientBuilder, MithrilResult};
18
18
19
19
use crate :: configuration:: ConfigParameters ;
20
20
21
+ const CLIENT_TYPE_CLI : & str = "CLI" ;
21
22
/// Shared arguments for all commands
22
23
#[ derive( Debug , Clone , Args ) ]
23
24
pub struct SharedArgs {
@@ -31,7 +32,8 @@ pub(crate) fn client_builder(params: &ConfigParameters) -> MithrilResult<ClientB
31
32
& params. require ( "aggregator_endpoint" ) ?,
32
33
& params. require ( "genesis_verification_key" ) ?,
33
34
)
34
- . with_origin_tag ( params. get ( "origin_tag" ) ) ;
35
+ . with_origin_tag ( params. get ( "origin_tag" ) )
36
+ . with_client_type ( Some ( CLIENT_TYPE_CLI . to_string ( ) ) ) ;
35
37
36
38
Ok ( builder)
37
39
}
@@ -52,7 +54,8 @@ pub(crate) fn client_builder_with_fallback_genesis_key(
52
54
fallback_genesis_verification_key,
53
55
) ,
54
56
)
55
- . with_origin_tag ( params. get ( "origin_tag" ) ) ;
57
+ . with_origin_tag ( params. get ( "origin_tag" ) )
58
+ . with_client_type ( Some ( CLIENT_TYPE_CLI . to_string ( ) ) ) ;
56
59
57
60
Ok ( builder)
58
61
}
You can’t perform that action at this time.
0 commit comments