AccountSharedData.set_data (#15781)

* account.set_data and resize_data

* remove data_resize
This commit is contained in:
Jeff Washington (jwash)
2021-03-11 16:40:45 -06:00
committed by GitHub
parent e1ceb430e3
commit 3419a5446e
9 changed files with 43 additions and 25 deletions

View File

@@ -98,7 +98,7 @@ fn allocate(
return Err(SystemError::InvalidAccountDataLength.into());
}
account.data = vec![0; space as usize];
account.set_data(vec![0; space as usize]);
Ok(())
}