Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill-K-1 committed Jan 26, 2024
1 parent befb3f4 commit 825a235
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions user-verifier/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ mod tests {
.signing_key
.verifying_key()
.verify_digest(
Keccak256::new_with_prefix(&hex::decode(&req.data).unwrap()),
Keccak256::new_with_prefix(hex::decode(&req.data).unwrap()),
&signature,
)
.unwrap();

// Recover and verify public key
let recovered_key = k256::ecdsa::VerifyingKey::recover_from_digest(
Keccak256::new_with_prefix(&hex::decode(&req.data).unwrap()),
Keccak256::new_with_prefix(hex::decode(&req.data).unwrap()),
&signature,
(req.v - 27).try_into().unwrap(),
)
Expand Down
2 changes: 1 addition & 1 deletion user-verifier/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ pub async fn signed_call<T: web3::Transport, P: contract::tokens::Tokenize + Clo
caller_secret,
)
.await
.map_err(|e| contract::Error::Api(e))
.map_err(contract::Error::Api)
}

0 comments on commit 825a235

Please sign in to comment.