diff --git a/.changeset/nine-lies-tickle.md b/.changeset/nine-lies-tickle.md new file mode 100644 index 00000000..79db44dc --- /dev/null +++ b/.changeset/nine-lies-tickle.md @@ -0,0 +1,5 @@ +--- +"permissionless": patch +--- + +Added support for extending the type of chain passed diff --git a/bun.lockb b/bun.lockb index 52698a02..bf430555 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/permissionless/actions/erc7579/accountId.ts b/packages/permissionless/actions/erc7579/accountId.ts index 3e3318a9..d7e370bd 100644 --- a/packages/permissionless/actions/erc7579/accountId.ts +++ b/packages/permissionless/actions/erc7579/accountId.ts @@ -22,9 +22,7 @@ export async function accountId< | undefined >( client: Client, - args?: TSmartAccount extends undefined - ? GetAccountParameter - : undefined + args?: GetAccountParameter ): Promise { let account_ = client.account diff --git a/packages/permissionless/package.json b/packages/permissionless/package.json index 5a0a60b0..54b39acc 100644 --- a/packages/permissionless/package.json +++ b/packages/permissionless/package.json @@ -86,6 +86,6 @@ } }, "peerDependencies": { - "viem": "^2.14.1" + "viem": ">=2.14.1 <2.18.0" } }