23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
12 lines
501 B
Diff
12 lines
501 B
Diff
diff --git a/sdk/program/src/account_info.rs b/sdk/program/src/account_info.rs
|
|
index 372370d0e15a0f2877b02ad29586e5b352438b24..3db3e9839b6535786e60be5602c03d0c909bf937 100644
|
|
--- a/sdk/program/src/account_info.rs
|
|
+++ b/sdk/program/src/account_info.rs
|
|
@@ -182,6 +182,7 @@ impl<'a> AccountInfo<'a> {
|
|
Ok(())
|
|
}
|
|
|
|
+ #[rustversion::attr(since(1.72), allow(invalid_reference_casting))]
|
|
pub fn assign(&self, new_owner: &Pubkey) {
|
|
// Set the non-mut owner field
|
|
unsafe {
|