From 04e6aebf3516e24a7c1a43c08245fb27b889c421 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 23 Apr 2021 13:26:33 -0500 Subject: [PATCH] .owner = X -> .set_owner(X) (#16759) --- runtime/src/accounts_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 713f785a04..f2f9a986fd 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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)