fix warnings

This commit is contained in:
Hardhat Chad
2024-02-16 21:58:00 +00:00
parent 3ea13ee246
commit ccb18b140a
7 changed files with 20 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ pub fn process_register<'a, 'info>(
)?;
let mut proof_data = proof_info.data.borrow_mut();
proof_data[0] = Proof::discriminator() as u8;
let mut proof = Proof::try_from_bytes_mut(&mut proof_data)?;
let proof = Proof::try_from_bytes_mut(&mut proof_data)?;
proof.authority = *signer.key;
proof.claimable_rewards = 0;
proof.hash = hashv(&[signer.key.as_ref()]).into();