We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_account_shared_data
1 parent d8058bc commit 1d51e80Copy full SHA for 1d51e80
account/src/lib.rs
@@ -226,6 +226,7 @@ pub trait ReadableAccount: Sized {
226
fn owner(&self) -> &Pubkey;
227
fn executable(&self) -> bool;
228
fn rent_epoch(&self) -> Epoch;
229
+ #[deprecated(since = "3.2.0")]
230
fn to_account_shared_data(&self) -> AccountSharedData {
231
AccountSharedData::create(
232
self.lamports(),
@@ -918,6 +919,7 @@ pub mod tests {
918
919
}
920
921
#[test]
922
+ #[allow(deprecated)]
923
fn test_to_account_shared_data() {
924
let key = Pubkey::new_unique();
925
let (account1, account2) = make_two_accounts(&key);
0 commit comments