Skip to content

Commit da615cf

Browse files
committed
fix: transfer_ownership compilation error
1 parent 5bf98cc commit da615cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

program/src/processor/transfer_ownership.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub fn process(
137137
return Err(ProgramError::InvalidAccountData);
138138
}
139139
// SAFETY: Alignment checked.
140-
let auth = unsafe { &*(current_owner_data.as_ptr() as *const AuthorityAccountHeader) };
140+
let auth = unsafe { &*(data.as_ptr() as *const AuthorityAccountHeader) };
141141
if auth.discriminator != AccountDiscriminator::Authority as u8 {
142142
return Err(ProgramError::InvalidAccountData);
143143
}
@@ -152,7 +152,7 @@ pub fn process(
152152
match auth.authority_type {
153153
0 => {
154154
// Ed25519: Verify signer (authority_payload ignored)
155-
Ed25519Authenticator.authenticate(accounts, current_owner_data, &[], &[], &[3])?;
155+
Ed25519Authenticator.authenticate(accounts, data, &[], &[], &[3])?;
156156
},
157157
1 => {
158158
// Secp256r1 (WebAuthn) - Must be Writable
@@ -162,7 +162,7 @@ pub fn process(
162162
// Secp256r1: Full authentication with payload
163163
Secp256r1Authenticator.authenticate(
164164
accounts,
165-
current_owner_data,
165+
data,
166166
authority_payload,
167167
data_payload,
168168
&[3],

0 commit comments

Comments
 (0)