Signature verification failed for EIP712 signed with metamask
I have some issues with signing with metamask.
I am currently facing some challenges while attempting to sign a transaction created with evmosjs using Metamask. Specifically, I am encountering an issue when trying to create and sign a delegate message with Metamask. Unfortunately, upon broadcasting the transaction, I received the following response:
{
"height": "0",
"txhash": "B1AB968A3616F5FA8E8F7BC831EFE61206291EAFA1AD7881F5F51854FE71AA81",
"codespace": "sdk",
"code": 4,
"data": "",
"raw_log": "signature verification failed; please verify account number (8) and chain-id (haqq_121799-1): unauthorized",
"logs": [],
"info": "",
"gas_wanted": "0",
"gas_used": "0",
"tx": null,
"timestamp": "",
"events": []
}
I would greatly appreciate any assistance or guidance you can provide to help resolve this issue. To further illustrate this compatibility issue, I have created a reproduction repository that demonstrates the problem. You can find it at the following link: https://github.com/olegshilov/evmosjs-metamask-sign-error
I wanted to provide you with an update regarding the issue I mentioned earlier. It appears that downgrading the @evmosjs/* packages to the following versions has resolved the problem:
"@evmos/proto": "0.1.27",
"@evmos/provider": "0.2.8",
"@evmos/transactions": "0.2.13"
By reverting to these specific versions, the functionality is now working correctly once again.
I wanted to share this information with you to ensure everyone is aware of the solution. If anyone encounters a similar issue, please advise them to follow the steps I have mentioned.
Thank you for your attention and support in resolving this matter.