Skip to content

Commit

Permalink
Update account.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 7, 2024
1 parent 3436447 commit 9b1cf6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { createViemClient, getDataFetcher } from "./config";
import { ChainId, LiquidityProviders, RPParams } from "sushi";
import { mnemonicToAccount, privateKeyToAccount } from "viem/accounts";
import { erc20Abi, multicall3Abi, orderbookAbi, routeProcessor3Abi } from "./abis";
import { getTransactionCount } from "viem/_types/actions/public/getTransactionCount";
import { context, Context, SpanStatusCode, trace, Tracer } from "@opentelemetry/api";
import { BotConfig, CliOptions, ViemClient, TokenDetails, OwnedOrder } from "./types";
import { createNonceManager, NonceManagerSource, parseAbi, PublicClient } from "viem";
Expand Down Expand Up @@ -1091,7 +1092,7 @@ export function noneSource(): NonceManagerSource {
return {
async get(parameters) {
const { address, client } = parameters;
return (client as ViemClient).getTransactionCount({
return getTransactionCount(client as any, {
address,
blockTag: "latest",
});
Expand Down

0 comments on commit 9b1cf6c

Please sign in to comment.