Add config param to specify offset/length for single and program account info (#11515)

* Add config param to specify dataSlice for account info and program accounts

* Use match instead of if
This commit is contained in:
Tyera Eulberg
2020-08-10 16:35:29 -06:00
committed by GitHub
parent da210ddd51
commit 88ca04dbdb
12 changed files with 210 additions and 26 deletions

View File

@ -105,6 +105,7 @@ fn test_rpc_send_tx() {
let config = RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Binary64),
commitment: None,
data_slice: None,
};
let req = json_req!(
"getAccountInfo",