Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid permit signature generated with MetaMaskWallet signAmino #114

Open
luca992 opened this issue Oct 31, 2022 · 2 comments
Open

Invalid permit signature generated with MetaMaskWallet signAmino #114

luca992 opened this issue Oct 31, 2022 · 2 comments

Comments

@luca992
Copy link

luca992 commented Oct 31, 2022

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.

@assafmo
Copy link
Member

assafmo commented Nov 27, 2022

Permits are not supported with MetaMask at the moment. I have a workaround but it's ugly 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@luca992 @assafmo and others