From af0c1b908c63444cb438e5facb9894544601eeef Mon Sep 17 00:00:00 2001 From: alvrs Date: Tue, 16 Apr 2024 22:45:37 +0100 Subject: [PATCH] extend with all public actions --- packages/account-kit/src/useAppAccountClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/account-kit/src/useAppAccountClient.ts b/packages/account-kit/src/useAppAccountClient.ts index 178f8f8b60..e6ca476151 100644 --- a/packages/account-kit/src/useAppAccountClient.ts +++ b/packages/account-kit/src/useAppAccountClient.ts @@ -1,6 +1,6 @@ import { useEffect, useMemo } from "react"; import { useAccount, usePublicClient } from "wagmi"; -import { http, maxUint256, toHex } from "viem"; +import { http, maxUint256, toHex, publicActions } from "viem"; import { callFrom } from "@latticexyz/world/internal"; import { createSmartAccountClient } from "permissionless"; import { createPimlicoBundlerClient } from "permissionless/clients/pimlico"; @@ -88,6 +88,7 @@ export function useAppAccountClient(): AppAccountClient | undefined { }) // TODO: can we replace the below with all publicActions? // .extend(publicActions(publicClient)) + .extend(publicActions(publicClient)) .extend(() => ({ getTransactionCount: (args) => { console.log("getTransactionCount, ", args);