I am using the latest implementation of EIP712 to ask for user to confirm some action:
web3.currentProvider.sendAsync({
method: "eth_signTypedData_v4",
params: [account, dataToSign],
from: account
}
with:
const metaTransactionType = [
{ name: "permission", type: "string" }
];
...
let message = {
permission: "Hello world"
};
...
const dataToSign = JSON.stringify({
types: {
EIP712Domain: domainType,
MetaTransaction: metaTransactionType
},
domain: domainData,
primaryType: "MetaTransaction",
message: message
});
And everything works fine, but the Metamask pop up shows the word "Message" twice:
Metamask version is 8.1.5 (the latest I believe). Is this a bug or am I constructing the data to sign wrong?
Thanks!