diff --git a/01-defender-meta-txs/src/signer.js b/01-defender-meta-txs/src/signer.js index 59a0873..c0b7d05 100644 --- a/01-defender-meta-txs/src/signer.js +++ b/01-defender-meta-txs/src/signer.js @@ -40,11 +40,7 @@ async function signTypedData(signer, from, data) { } // Otherwise, send the signTypedData RPC call - // Note that hardhatvm and metamask require different EIP712 input - const isHardhat = data.domain.chainId == 31337; - const [method, argData] = isHardhat - ? ['eth_signTypedData', data] - : ['eth_signTypedData_v4', JSON.stringify(data)] + const [method, argData] = ['eth_signTypedData_v4', JSON.stringify(data)]; return await signer.send(method, [from, argData]); }