Skip to content

Commit

Permalink
extend with all public actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Apr 16, 2024
1 parent 5258e9b commit af0c1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/account-kit/src/useAppAccountClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit af0c1b9

Please sign in to comment.