owner -> owner() (#16784)
This commit is contained in:
committed by
GitHub
parent
c44812fa71
commit
aeff911c93
@ -1596,7 +1596,7 @@ mod tests {
|
||||
assert_eq!(None, bank.get_account(&buffer_address));
|
||||
let post_program_account = bank.get_account(&program_keypair.pubkey()).unwrap();
|
||||
assert_eq!(post_program_account.lamports, min_program_balance);
|
||||
assert_eq!(post_program_account.owner, bpf_loader_upgradeable::id());
|
||||
assert_eq!(post_program_account.owner(), &bpf_loader_upgradeable::id());
|
||||
assert_eq!(
|
||||
post_program_account.data().len(),
|
||||
UpgradeableLoaderState::program_len().unwrap()
|
||||
|
@ -422,7 +422,7 @@ mod tests {
|
||||
let account = account.borrow();
|
||||
assert_eq!(account.lamports, account_info.lamports());
|
||||
assert_eq!(account.data(), &account_info.data.borrow()[..]);
|
||||
assert_eq!(&account.owner, account_info.owner);
|
||||
assert_eq!(account.owner(), account_info.owner);
|
||||
assert_eq!(account.executable, account_info.executable);
|
||||
assert_eq!(account.rent_epoch, account_info.rent_epoch);
|
||||
|
||||
@ -470,7 +470,7 @@ mod tests {
|
||||
account.data(),
|
||||
de_keyed_account.try_account_ref().unwrap().data()
|
||||
);
|
||||
assert_eq!(account.owner, de_keyed_account.owner().unwrap());
|
||||
assert_eq!(*account.owner(), de_keyed_account.owner().unwrap());
|
||||
assert_eq!(account.executable, de_keyed_account.executable().unwrap());
|
||||
assert_eq!(account.rent_epoch, de_keyed_account.rent_epoch().unwrap());
|
||||
}
|
||||
@ -494,7 +494,7 @@ mod tests {
|
||||
let account = account.borrow();
|
||||
assert_eq!(account.lamports, account_info.lamports());
|
||||
assert_eq!(account.data(), &account_info.data.borrow()[..]);
|
||||
assert_eq!(&account.owner, account_info.owner);
|
||||
assert_eq!(account.owner(), account_info.owner);
|
||||
assert_eq!(account.executable, account_info.executable);
|
||||
assert_eq!(account.rent_epoch, account_info.rent_epoch);
|
||||
}
|
||||
@ -529,7 +529,7 @@ mod tests {
|
||||
account.data(),
|
||||
de_keyed_account.try_account_ref().unwrap().data()
|
||||
);
|
||||
assert_eq!(account.owner, de_keyed_account.owner().unwrap());
|
||||
assert_eq!(*account.owner(), de_keyed_account.owner().unwrap());
|
||||
assert_eq!(account.executable, de_keyed_account.executable().unwrap());
|
||||
assert_eq!(account.rent_epoch, de_keyed_account.rent_epoch().unwrap());
|
||||
}
|
||||
|
Reference in New Issue
Block a user