AccountSharedData.set_executable() (#16881)
This commit is contained in:
committed by
GitHub
parent
2021255f91
commit
a7a671b3aa
@@ -7432,7 +7432,7 @@ pub mod tests {
|
||||
|
||||
// Executable may not be modified
|
||||
let mut account_modified = account;
|
||||
account_modified.executable = true;
|
||||
account_modified.set_executable(true);
|
||||
assert_ne!(
|
||||
hash,
|
||||
AccountsDb::hash_frozen_account_data(&account_modified)
|
||||
@@ -7590,7 +7590,7 @@ pub mod tests {
|
||||
db.store_uncached(some_slot, &[(&key, &account)]);
|
||||
let mut account = db.load_without_fixed_root(&ancestors, &key).unwrap().0;
|
||||
account.checked_sub_lamports(1).unwrap();
|
||||
account.executable = true;
|
||||
account.set_executable(true);
|
||||
db.store_uncached(some_slot, &[(&key, &account)]);
|
||||
db.add_root(some_slot);
|
||||
|
||||
|
Reference in New Issue
Block a user