about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/solana/account-info.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/blockchains/solana/account-info.patch')
-rw-r--r--pkgs/applications/blockchains/solana/account-info.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/solana/account-info.patch b/pkgs/applications/blockchains/solana/account-info.patch
new file mode 100644
index 0000000000000..2893bfead3451
--- /dev/null
+++ b/pkgs/applications/blockchains/solana/account-info.patch
@@ -0,0 +1,12 @@
+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 {