ledger-tool: Add print-accounts command

This commit is contained in:
Michael Vines
2020-02-14 13:24:16 -07:00
parent 71f77a8e0a
commit 1bf2285fa2
6 changed files with 80 additions and 10 deletions

View File

@ -121,7 +121,7 @@ impl JsonRpcRequestProcessor {
) -> Result<Vec<RpcKeyedAccount>> {
Ok(self
.bank(commitment)
.get_program_accounts(&program_id)
.get_program_accounts(Some(&program_id))
.into_iter()
.map(|(pubkey, account)| RpcKeyedAccount {
pubkey: pubkey.to_string(),