chore: adds link to discussion on omitting EIP712Domain validation

This commit is contained in:
Ben Kremer 2022-03-21 11:50:43 +01:00
parent 1f3af8763c
commit 5097f42b7f
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;