Skip to content

Commit

Permalink
chore: adds link to discussion on omitting EIP712Domain validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrem committed Mar 21, 2022
1 parent 1f3af87 commit 5097f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dapps/react-dapp-v2-with-ethers/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default function App() {

// Separate `EIP712Domain` type from remaining types to verify, otherwise `ethers.utils.verifyTypedData`
// will throw due to "unused" `EIP712Domain` type.
// See: https://github.com/ethers-io/ethers.js/issues/687#issuecomment-714069471
const { EIP712Domain, ...nonDomainTypes }: Record<string, TypedDataField[]> =
eip712.example.types;

Expand Down
1 change: 1 addition & 0 deletions dapps/react-dapp-v2-with-web3js/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default function App() {

// Separate `EIP712Domain` type from remaining types to verify, otherwise `ethers.utils.verifyTypedData`
// will throw due to "unused" `EIP712Domain` type.
// See: https://github.com/ethers-io/ethers.js/issues/687#issuecomment-714069471
const { EIP712Domain, ...nonDomainTypes }: Record<string, TypedDataField[]> =
eip712.example.types;

Expand Down
1 change: 1 addition & 0 deletions dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export function JsonRpcContextProvider({ children }: { children: ReactNode | Rea

// Separate `EIP712Domain` type from remaining types to verify, otherwise `ethers.utils.verifyTypedData`
// will throw due to "unused" `EIP712Domain` type.
// See: https://github.com/ethers-io/ethers.js/issues/687#issuecomment-714069471
const { EIP712Domain, ...nonDomainTypes }: Record<string, TypedDataField[]> =
eip712.example.types;

Expand Down

0 comments on commit 5097f42

Please sign in to comment.