Fix typo in wallet

This commit is contained in:
Tyera Eulberg
2019-03-14 17:14:23 -06:00
committed by Tyera Eulberg
parent 7239efe1e7
commit bfff18ac70

View File

@ -602,7 +602,7 @@ pub fn process_command(config: &WalletConfig) -> Result<String, Box<dyn error::E
} }
// Apply time elapsed to contract // Apply time elapsed to contract
WalletCommand::TimeElapsed(to, pubkey, dt) => { WalletCommand::TimeElapsed(to, pubkey, dt) => {
let params = json!(format!("{}", config.id.pubkey())); let params = json!([format!("{}", config.id.pubkey())]);
let balance = RpcRequest::GetBalance let balance = RpcRequest::GetBalance
.make_rpc_request(&rpc_client, 1, Some(params))? .make_rpc_request(&rpc_client, 1, Some(params))?
.as_u64(); .as_u64();