Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Sep 11, 2024
1 parent 0b283aa commit bbc2ea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/account-balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { VercelResponse } from "@vercel/node";
import { assert, Infer, type, string } from "superstruct";
import { TypedVercelRequest } from "./_types";
import {
getCachedLatestBalance,
latestBalanceCache,
getLogger,
handleErrorCondition,
validAddress,
Expand Down Expand Up @@ -31,11 +31,11 @@ const handler = async (

let { token, account, chainId } = query;

const balance = await getCachedLatestBalance(
const balance = await latestBalanceCache(
Number(chainId),
token,
account
);
).get();
const result = {
balance: balance.toString(),
account: account,
Expand Down

0 comments on commit bbc2ea8

Please sign in to comment.