Skip to content

Commit

Permalink
Use STORAGE_ACCOUNT_SPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed May 22, 2019
1 parent ac3ae02 commit 73139f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/storage_api/src/storage_contract.rs
Expand Up @@ -418,7 +418,7 @@ mod tests {
fn test_account_data() {
solana_logger::setup();
let mut account = Account::default();
account.data.resize(4 * 1024, 0);
account.data.resize(STORAGE_ACCOUNT_SPACE);
let storage_account = StorageAccount::new(&mut account);
// pretend it's a validator op code
let mut contract = storage_account.account.state().unwrap();
Expand Down Expand Up @@ -473,7 +473,7 @@ mod tests {
// account has no space
process_validation(&mut account, segment_index, &proof, &checked_proof).unwrap_err();

account.account.data.resize(4 * 1024, 0);
account.account.data.resize(STORAGE_ACCOUNT_SPACE, 0);
let storage_contract = &mut account.account.state().unwrap();
if let StorageContract::Uninitialized = storage_contract {
let mut proof_map = HashMap::new();
Expand Down

0 comments on commit 73139f8

Please sign in to comment.