Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
debugging 'bad key handle' error for ledger signer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanmtate committed Oct 7, 2021
1 parent 61a153d commit 2803a3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ethers-signers/src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ impl Signer for LedgerEthereum {
&self,
payload: T,
) -> Result<Signature, Self::Error> {
let hash = payload
let mut hash: Vec<u8> = payload
.encode_eip712()
.map_err(|e| Self::Error::Eip712Error(e.to_string()))?;
.map_err(|e| Self::Error::Eip712Error(e.to_string()))?
.into();

let sig = self.sign_payload(INS::SIGN, hash.into()).await?;
let sig = self.sign_payload(INS::SIGN, hash).await?;

Ok(sig)
}
Expand Down

0 comments on commit 2803a3c

Please sign in to comment.