From 568babc6badaf7b3f8629ebefeaffeba95219da4 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 7 Oct 2021 10:01:33 -0700 Subject: [PATCH] debugging 'bad key handle' error for ledger signer Try using SIGN_PERSONAL_MESSAGE --- ethers-signers/src/ledger/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-signers/src/ledger/mod.rs b/ethers-signers/src/ledger/mod.rs index 51a1426a12..05ee4f3f21 100644 --- a/ethers-signers/src/ledger/mod.rs +++ b/ethers-signers/src/ledger/mod.rs @@ -37,7 +37,7 @@ impl Signer for LedgerEthereum { .encode_eip712() .map_err(|e| Self::Error::Eip712Error(e.to_string()))?; - let sig = self.sign_payload(INS::SIGN, hash.into()).await?; + let sig = self.sign_payload(INS::SIGN_PERSONAL_MESSAGE, hash.into()).await?; Ok(sig) }