.owner = X -> .set_owner(X) (#16759)

This commit is contained in:
Jeff Washington (jwash)
2021-04-23 13:26:33 -05:00
committed by GitHub
parent fb0b76c1f3
commit 04e6aebf35

View File

@ -7403,8 +7403,8 @@ pub mod tests {
// Owner may not be modified // Owner may not be modified
let mut account_modified = account.clone(); let mut account_modified = account.clone();
account_modified.owner = account_modified
Pubkey::from_str("My11111111111111111111111111111111111111111").unwrap(); .set_owner(Pubkey::from_str("My11111111111111111111111111111111111111111").unwrap());
assert_ne!( assert_ne!(
hash, hash,
AccountsDb::hash_frozen_account_data(&account_modified) AccountsDb::hash_frozen_account_data(&account_modified)