make AccountSharedData.data private to abstract storage (#16091)

* format

* 2 more tests

* use
This commit is contained in:
Jeff Washington (jwash)
2021-03-25 11:04:20 -05:00
committed by GitHub
parent 43a116a84e
commit 66c42f62d8
5 changed files with 13 additions and 9 deletions

View File

@ -413,7 +413,7 @@ pub mod tests {
// Vote account too big
let cache_data = vote_account.data().to_vec();
let mut pushed = vote_account.data.to_vec();
let mut pushed = vote_account.data().to_vec();
pushed.push(0);
vote_account.set_data(pushed);
stakes.store(&vote_pubkey, &vote_account, true, true);