This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Eip712 doesn't support any
messages
#1245
Milestone
any
messages
#1245
Most messages with EIP712 are working fine, but the code is not working if some values that are not the cosmos transaction itself, are contained inside a proto.Any object.
The issue is that when we create read the transactions values, they are parsed using the JSON lib, for example, for public keys it returns the base64 representation of the pubkey as a string.
When the lib generates the types for the EIP712 message, it uses codec.UnpackAny if the message is contained inside a proto.Any object it will return {type:string, value:...} instead of the expected string
Expected
Add tests for any messages, here's a start: #1076
The text was updated successfully, but these errors were encountered: