From 12a7478695b52f37941b78e84a02e592fd62c1a5 Mon Sep 17 00:00:00 2001 From: Leandro Date: Thu, 26 Oct 2023 12:30:22 -0300 Subject: [PATCH] fix: needless borrow --- src/asset_reward/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asset_reward/lib.rs b/src/asset_reward/lib.rs index 959607b..114c421 100755 --- a/src/asset_reward/lib.rs +++ b/src/asset_reward/lib.rs @@ -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), }