Rework upgradeable loader cli (#14209) (#14236)

(cherry picked from commit 3316e7166c)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-12-21 22:26:11 +00:00
committed by GitHub
parent c53e8ee3ad
commit 74d48910e2
7 changed files with 1781 additions and 1373 deletions

View File

@@ -48,6 +48,10 @@ impl RpcSender for MockSender {
return Ok(Value::Null);
}
let val = match request {
RpcRequest::GetAccountInfo => serde_json::to_value(Response {
context: RpcResponseContext { slot: 1 },
value: Value::Null,
})?,
RpcRequest::GetBalance => serde_json::to_value(Response {
context: RpcResponseContext { slot: 1 },
value: Value::Number(Number::from(50)),