Tiny add_native_program bug fixes with cleanups (#14042)

* Tiny add_native_program bug fixes with cleanups

* Fix typo
This commit is contained in:
Ryo Onodera
2020-12-11 11:03:31 +09:00
committed by GitHub
parent d33ab34d75
commit 164b7895b3
4 changed files with 225 additions and 87 deletions

View File

@@ -4738,7 +4738,7 @@ pub mod tests {
some_slot,
&[(
&native_account_pubkey,
&solana_sdk::native_loader::create_loadable_account("foo"),
&solana_sdk::native_loader::create_loadable_account("foo", 1),
)],
);
db.update_accounts_hash(some_slot, &ancestors);
@@ -5511,7 +5511,7 @@ pub mod tests {
#[test]
fn test_account_balance_for_capitalization_native_program() {
let normal_native_program = solana_sdk::native_loader::create_loadable_account("foo");
let normal_native_program = solana_sdk::native_loader::create_loadable_account("foo", 1);
assert_eq!(
AccountsDB::account_balance_for_capitalization(
normal_native_program.lamports,