drk: check cashier features before send get_token_id request

This commit is contained in:
ghassmo
2021-10-06 11:00:40 +03:00
parent 164757f17b
commit 0a74711bff

View File

@@ -167,6 +167,10 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
let token = matches.value_of("TOKEN").unwrap();
let network = matches.value_of("network").unwrap().to_lowercase();
client
.check_network(&NetworkName::from_str(&network)?)
.await?;
let reply = client.get_token_id(&network, &token).await?;
println!("Server replied: {}", &reply.to_string());