[Bug] SDK's `signTypedData` calls for Ledger Wallets are broken
See original GitHub issueExpected Behavior
signTypedData
calls for Ledger Wallets works in the SDK.
Current Behavior
Discord Link describing this issue.
it looks like contractkit 1.0.1+ has broken signTypedData
calls for Ledger Wallets.
The reason is because this call, doesn’t actually exist in hw-app-eth version ~5.11, which you had to revert to because of the other bug.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Solve a synchronization error - Ledger Support
A synchronization error may occur in Ledger Live when there is or has been ... During the outage, you can use the third-party...
Read more >Solving a MetaMask connection issue - Ledger Support
Open the Ethereum (ETH) app on your Ledger device before starting the "Connect Hardware Wallet > Ledger > Continue" sequence in Metamask.
Read more >Fix USB connection issues with Ledger Live
Please make sure all applications and browser extensions are fully closed when attempting to connect. This includes third party wallets ( ...
Read more >Ledger + MetaMask common error messages
Open the Ethereum (ETH) app on your Ledger device before you click Connect Hardware Wallet in MetaMask. Wait until the device displays The ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yup great catch looks like we got the API wrong there. That’s what you get when you don’t have typescript declaration files for some plugins 😅.
Luckily the fix looks pretty simple easy but we need to do some testing on it to make sure that it actually works this time, and as luck would have it I actually have access to a ledger now 🎉
The problem is pretty obvious in hindsight, the call is completely broken. Code looks like this:
structHash returns a ‘Buffer’ type.
https://www.npmjs.com/package/@ledgerhq/hw-app-eth?activeTab=readme#signeip712hashedmessage
signEIP712HashedMessage takes in strings not Buffers as arguments.
(cc: @bowd )