From f44b67ced0bd974a541815e758d942596ff84ece Mon Sep 17 00:00:00 2001 From: daemon-reconfig Date: Thu, 25 Apr 2024 18:26:50 +0530 Subject: [PATCH 1/3] Fixed import TypedData from 'abitype' to 'viem' --- packages/permissionless/accounts/kernel/utils/signTypedData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/permissionless/accounts/kernel/utils/signTypedData.ts b/packages/permissionless/accounts/kernel/utils/signTypedData.ts index 3ca1b000..51843b6f 100644 --- a/packages/permissionless/accounts/kernel/utils/signTypedData.ts +++ b/packages/permissionless/accounts/kernel/utils/signTypedData.ts @@ -1,4 +1,3 @@ -import type { TypedData } from "abitype" import { type Account, type Chain, @@ -7,6 +6,7 @@ import { type SignTypedDataParameters, type SignTypedDataReturnType, type Transport, + TypedData, getTypesForEIP712Domain, hashTypedData, publicActions, From c239d910a48d680823f8712a5a67e117689f907e Mon Sep 17 00:00:00 2001 From: daemon-reconfig Date: Thu, 25 Apr 2024 18:42:57 +0530 Subject: [PATCH 2/3] Added Changeset --- .changeset/red-pens-confess.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/red-pens-confess.md diff --git a/.changeset/red-pens-confess.md b/.changeset/red-pens-confess.md new file mode 100644 index 00000000..ac94332e --- /dev/null +++ b/.changeset/red-pens-confess.md @@ -0,0 +1,5 @@ +--- +"permissionless": patch +--- + +Fixed TypedData import from abitype to import from viem From a36220eaffb86e4ac0484e972ad9d88b87d4bc9a Mon Sep 17 00:00:00 2001 From: daemon-reconfig Date: Thu, 25 Apr 2024 18:48:59 +0530 Subject: [PATCH 3/3] Used type in front of TypedData --- packages/permissionless/accounts/kernel/utils/signTypedData.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/permissionless/accounts/kernel/utils/signTypedData.ts b/packages/permissionless/accounts/kernel/utils/signTypedData.ts index 51843b6f..a75f1cc9 100644 --- a/packages/permissionless/accounts/kernel/utils/signTypedData.ts +++ b/packages/permissionless/accounts/kernel/utils/signTypedData.ts @@ -6,12 +6,13 @@ import { type SignTypedDataParameters, type SignTypedDataReturnType, type Transport, - TypedData, + type TypedData, getTypesForEIP712Domain, hashTypedData, publicActions, validateTypedData } from "viem" + import { signMessage as _signMessage, signTypedData as _signTypedData