LedgerHQ / eth-dapp-browser

https://dapp-browser.apps.ledger.com/
5 stars 9 forks source link

[FIX] convert the EIP-191 message as text #13

Closed chabroA closed 2 years ago

chabroA commented 2 years ago

The message is received as a hex string, we need to strip the "0x" prefix and convert it to a string. Because the SDK signMessage function takes the message to sign as a Buffer of the text message.

Otherwise, the message to sign is the hex representation of the message and not the plain text one

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
eth-dapp-browser ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 8:55AM (UTC)