From 6a2e51e12f0b51bb44cd13a2b7bfc74085d7408b Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Thu, 8 Aug 2024 01:41:33 -0700 Subject: [PATCH] feat: export universalSignatureValidatorAbi --- .changeset/chilly-bugs-tell.md | 5 +++++ src/actions/public/verifyTypedData.ts | 1 + src/index.test.ts | 1 + src/index.ts | 1 + 4 files changed, 8 insertions(+) create mode 100644 .changeset/chilly-bugs-tell.md diff --git a/.changeset/chilly-bugs-tell.md b/.changeset/chilly-bugs-tell.md new file mode 100644 index 0000000000..9730cedf66 --- /dev/null +++ b/.changeset/chilly-bugs-tell.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Exported `universalSignatureValidatorAbi`. diff --git a/src/actions/public/verifyTypedData.ts b/src/actions/public/verifyTypedData.ts index 6a1e2e28a1..473617c930 100644 --- a/src/actions/public/verifyTypedData.ts +++ b/src/actions/public/verifyTypedData.ts @@ -63,6 +63,7 @@ export async function verifyTypedData< ...callRequest } = parameters as VerifyTypedDataParameters const hash = hashTypedData({ message, primaryType, types, domain }) + return verifyHash(client, { address, factory: factory!, diff --git a/src/index.test.ts b/src/index.test.ts index 74f6563426..38a8491cb2 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -46,6 +46,7 @@ test('exports', () => { "deploylessCallViaBytecodeBytecode", "deploylessCallViaFactoryBytecode", "universalSignatureValidatorByteCode", + "universalSignatureValidatorAbi", "etherUnits", "gweiUnits", "weiUnits", diff --git a/src/index.ts b/src/index.ts index c9355cce74..03f4014300 100644 --- a/src/index.ts +++ b/src/index.ts @@ -555,6 +555,7 @@ export { erc20Abi_bytes32, erc721Abi, erc4626Abi, + universalSignatureValidatorAbi } from './constants/abis.js' export { zeroAddress } from './constants/address.js' export {