Timeline for Why does Metamsk display the sign data as unicode question marks and other various characters when signing a message with Viem?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 16, 2023 at 4:50 | comment | added | ardislu |
Yes, you'd need to convert the address to a string representing the address. Note that the len(message) would also need to be updated from "20" to "42" to reflect the number of bytes the string takes. As for EIP-712, I think this would depend on your overall use case/intent; MetaMask's documentation has good explanation on the pros and cons of both approaches.
|
|
Dec 16, 2023 at 1:16 | comment | added | Rohan Nero | So if my solidity function takes an address as input, I would be forced to convert it to a string? Also, if I only want to hash a single address, would it be overkill to use EIP 712? | |
Dec 16, 2023 at 1:15 | vote | accept | Rohan Nero | ||
Dec 16, 2023 at 0:27 | history | answered | ardislu | CC BY-SA 4.0 |