Skip to content

Commit

Permalink
fix: needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
leapalazzolo committed Oct 26, 2023
1 parent 91d5870 commit 12a7478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asset_reward/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ mod asset_reward {
/// A helper function to recover the signer from a ECDSA signature from a given message.
pub fn recover_signer(signature: &SignatureValue, message: &HashValue) -> Result<[u8; 33]> {
let mut output: [u8; 33] = [0; 33];
match ink::env::ecdsa_recover(&signature, &message, &mut output) {
match ink::env::ecdsa_recover(signature, message, &mut output) {
Ok(_) => Ok(output),
Err(_) => Err(Error::InvalidSigner),
}
Expand Down

0 comments on commit 12a7478

Please sign in to comment.