Skip to content

Invalid permit signature generated with MetaMaskWallet signAmino #114

@luca992

Description

@luca992

When I use metamask to try and generate a permit. I'm getting "Failed to verify signatures for the given permit" when trying to use the permit.
I think it might have to do with pretty printing the json before converting to hex:

const msgToSign = `0x${toHex(prettySerializeStdSignDoc(signDoc))}`;

Which would make the computed hashes different when the signature is generated, I would think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions