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

Commit 909c491

Browse files
committed
debugging 'bad key handle' error for ledger signer
try using 'sign_message'
1 parent 61a153d commit 909c491

File tree

1 file changed

+1
-1
lines changed
  • ethers-signers/src/ledger

1 file changed

+1
-1
lines changed

Diff for: ethers-signers/src/ledger/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Signer for LedgerEthereum {
3737
.encode_eip712()
3838
.map_err(|e| Self::Error::Eip712Error(e.to_string()))?;
3939

40-
let sig = self.sign_payload(INS::SIGN, hash.into()).await?;
40+
let sig = self.sign_message(hash).await?;
4141

4242
Ok(sig)
4343
}

0 commit comments

Comments
 (0)