.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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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