diff --git a/README.md b/README.md index d9bdd6a..f6bd2fd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This package serves to generate a Types object compatible with EIP-712 ( https:/ ## Usage -Import `getEthTypesFromSchema` into your project and pass in the `message` that you intend to sign using EIP-712, including the `proof` object. This will return an object that can be used as the `types` object passed into `eth_signTypedDatav4` +Import `getEthTypesFromInputDoc` into your project and pass in the `message` that you intend to sign using EIP-712, including the `proof` object. This will return an object that can be used as the `types` object passed into `eth_signTypedDatav4` ## Developing diff --git a/src/getEthTypesFromInputDoc.ts b/src/getEthTypesFromInputDoc.ts index 9ae7f41..0a579a4 100644 --- a/src/getEthTypesFromInputDoc.ts +++ b/src/getEthTypesFromInputDoc.ts @@ -10,11 +10,6 @@ export function getEthTypesFromInputDoc(input: object, primaryType: string = "Do if (!res.has("Proof")) { throw new Error("No proof was found on input document"); } - res.set("EIP712Domain", [ - { name: "name", type: "string" }, - { name: "version", type: "string" }, - { name: "chainId", type: "uint256" }, - ]); let obj = Object.fromEntries(res); obj = { "EIP712Domain": [