Use new_response for consistency

This commit is contained in:
Tyera Eulberg 2020-09-03 11:57:57 -06:00
parent 28cf896a64
commit 90fad36613
No known key found for this signature in database
GPG Key ID: 92310FD3120230CF
1 changed files with 2 additions and 8 deletions

View File

@ -264,10 +264,7 @@ impl JsonRpcRequestProcessor {
get_encoded_account(&bank, &pubkey, encoding.clone(), config.data_slice)?;
accounts.push(response_account)
}
Ok(Response {
context: RpcResponseContext { slot: bank.slot() },
value: accounts,
})
Ok(new_response(&bank, accounts))
}
pub fn get_minimum_balance_for_rent_exemption(
@ -779,10 +776,7 @@ impl JsonRpcRequestProcessor {
};
statuses.push(status);
}
Ok(Response {
context: RpcResponseContext { slot: bank.slot() },
value: statuses,
})
Ok(new_response(&bank, statuses))
}
fn get_transaction_status(