From 6c5b7ecf909cdc4a9805c0a9fdf6eea803f27adf Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 23 Apr 2021 09:34:28 -0500 Subject: [PATCH] account.owner = X -> account.set_owner(X) (#16756) --- runtime/src/accounts.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index 23eebac58b..6fa2675662 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -1405,32 +1405,32 @@ mod tests { let mut account = AccountSharedData::new(40, 1, &Pubkey::default()); account.executable = true; - account.owner = native_loader::id(); + account.set_owner(native_loader::id()); accounts.push((key1, account)); let mut account = AccountSharedData::new(41, 1, &Pubkey::default()); account.executable = true; - account.owner = key1; + account.set_owner(key1); accounts.push((key2, account)); let mut account = AccountSharedData::new(42, 1, &Pubkey::default()); account.executable = true; - account.owner = key2; + account.set_owner(key2); accounts.push((key3, account)); let mut account = AccountSharedData::new(43, 1, &Pubkey::default()); account.executable = true; - account.owner = key3; + account.set_owner(key3); accounts.push((key4, account)); let mut account = AccountSharedData::new(44, 1, &Pubkey::default()); account.executable = true; - account.owner = key4; + account.set_owner(key4); accounts.push((key5, account)); let mut account = AccountSharedData::new(45, 1, &Pubkey::default()); account.executable = true; - account.owner = key5; + account.set_owner(key5); accounts.push((key6, account)); let instructions = vec![CompiledInstruction::new(1, &(), vec![0])]; @@ -1573,13 +1573,13 @@ mod tests { let mut account = AccountSharedData::new(40, 1, &Pubkey::default()); account.executable = true; account.rent_epoch = 1; - account.owner = native_loader::id(); + account.set_owner(native_loader::id()); accounts.push((key1, account)); let mut account = AccountSharedData::new(41, 1, &Pubkey::default()); account.executable = true; account.rent_epoch = 1; - account.owner = key1; + account.set_owner(key1); accounts.push((key2, account)); let instructions = vec![