owner -> owner() (#16785)
This commit is contained in:
committed by
GitHub
parent
1500011fc6
commit
1a4a7059af
@ -10910,7 +10910,7 @@ pub(crate) mod tests {
|
||||
bank.get_balance(&inline_spl_token_v2_0::native_mint::id()),
|
||||
4200000000
|
||||
);
|
||||
assert_eq!(native_mint_account.owner, inline_spl_token_v2_0::id());
|
||||
assert_eq!(native_mint_account.owner(), &inline_spl_token_v2_0::id());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -537,7 +537,7 @@ mod tests {
|
||||
);
|
||||
assert_eq!(from_account.borrow().lamports, 50);
|
||||
assert_eq!(to_account.borrow().lamports, 50);
|
||||
assert_eq!(to_account.borrow().owner, new_owner);
|
||||
assert_eq!(to_account.borrow().owner(), &new_owner);
|
||||
assert_eq!(to_account.borrow().data(), &[0, 0]);
|
||||
}
|
||||
|
||||
@ -688,7 +688,7 @@ mod tests {
|
||||
|
||||
let from_lamports = from_account.borrow().lamports;
|
||||
let to_lamports = to_account.borrow().lamports;
|
||||
let to_owner = to_account.borrow().owner;
|
||||
let to_owner = *to_account.borrow().owner();
|
||||
assert_eq!(from_lamports, 100);
|
||||
assert_eq!(to_lamports, 0);
|
||||
assert_eq!(to_owner, new_owner);
|
||||
|
Reference in New Issue
Block a user