[14.x] fix: support ethermint's EIP712 implementation
MM is broken since v12.1.1 for cosmos chains that use https://github.com/evmos/ethermint as EVM adapter.
Ethermint uses hard coded "cosmos" string as the VerifyingContract field, which is broken since validateVerifyingContract was introduced in MM.
This PR adds support to allow "cosmos" as the VerifyingContract value.
+1
+1
@jpuri
Thanks again for the contribution @mtsitrin ! I've just pushed a few minor changes to make this match the version of this that we merged into the main branch and shipped to production: https://github.com/MetaMask/eth-json-rpc-middleware/pull/334
This has been published as @metamask/[email protected]