CLI: Don't hide errors when fees are disabled (#8204)

automerge

(cherry picked from commit ed87229cec)
This commit is contained in:
Trent Nelson
2020-02-11 22:48:04 -07:00
committed by Michael Vines
parent 47f887bda0
commit 66f006108c
3 changed files with 17 additions and 20 deletions

View File

@@ -60,13 +60,10 @@ impl GenericRpcClientRequest for MockRpcClientRequest {
Value::Null
}
}
RpcRequest::GetBalance => {
let n = if self.url == "airdrop" { 0 } else { 50 };
serde_json::to_value(Response {
context: RpcResponseContext { slot: 1 },
value: Value::Number(Number::from(n)),
})?
}
RpcRequest::GetBalance => serde_json::to_value(Response {
context: RpcResponseContext { slot: 1 },
value: Value::Number(Number::from(50)),
})?,
RpcRequest::GetRecentBlockhash => serde_json::to_value(Response {
context: RpcResponseContext { slot: 1 },
value: (