Deprecate RpcClient methods, RpcRequest variants (#16516)

* Deprecate RpcClient methods, RpcRequest variants

* Update cli to getSupply
This commit is contained in:
Tyera Eulberg
2021-04-13 14:05:42 -06:00
committed by GitHub
parent 17aa45fad1
commit ccb11a939f
3 changed files with 24 additions and 2 deletions

View File

@ -1234,8 +1234,8 @@ pub fn process_supply(
}
pub fn process_total_supply(rpc_client: &RpcClient, _config: &CliConfig) -> ProcessResult {
let total_supply = rpc_client.total_supply()?;
Ok(format!("{} SOL", lamports_to_sol(total_supply)))
let supply = rpc_client.supply()?.value;
Ok(format!("{} SOL", lamports_to_sol(supply.total)))
}
pub fn process_get_transaction_count(rpc_client: &RpcClient, _config: &CliConfig) -> ProcessResult {