Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreynolds committed Nov 24, 2021
1 parent 36c6f0f commit e595dc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions src/getEthTypesFromInputDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit e595dc3

Please sign in to comment.