You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
pubfnassign(&self,new_owner:&Pubkey){// Set the non-mut owner fieldunsafe{
std::ptr::write_volatile(self.owneras*constPubkeyas*mut[u8;32],
new_owner.to_bytes(),);}}
This is not allowed in Rust and causes undefined behavior. It's not clear what write_volatile is doing here, but it's probably not what is intended.
Proposed Solution
I don't see any way to do this without changing the definition of AccountInfo.
The text was updated successfully, but these errors were encountered:
Problem
Here's the definition:
This is not allowed in Rust and causes undefined behavior. It's not clear what
write_volatile
is doing here, but it's probably not what is intended.Proposed Solution
I don't see any way to do this without changing the definition of
AccountInfo
.The text was updated successfully, but these errors were encountered: