Skip to content

Commit

Permalink
Fix: bug with getERC20 return type
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Sep 22, 2023
1 parent 88a51b0 commit a7b45b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/erc20/publicActions/getERC20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ReverseMirage } from "../../types/rm.js";
import type { BaseERC20, ERC20 } from "../types.js";
import { createERC20 } from "../utils.js";
import { getERC20Decimals } from "./getERC20Decimals.js";
import { type GetERC20NameReturnType, getERC20Name } from "./getERC20Name.js";
import { getERC20Name } from "./getERC20Name.js";
import { getERC20Symbol } from "./getERC20Symbol.js";

export type GetERC20Parameters = Omit<
Expand All @@ -24,7 +24,7 @@ export const getERC20 = <
client: Client<Transport, TChain>,
{ erc20, ...request }: GetERC20Parameters,
type?: T,
): ReverseMirage<[string, string, number], GetERC20NameReturnType, T> =>
): ReverseMirage<[string, string, number], GetERC20ReturnType, T> =>
(type === undefined
? Promise.all([
getERC20Name(client, { erc20, ...request }),
Expand Down Expand Up @@ -56,4 +56,4 @@ export const getERC20 = <
erc20.chainID,
erc20.blockCreated,
),
}) as ReverseMirage<[string, string, number], GetERC20NameReturnType, T>;
}) as ReverseMirage<[string, string, number], GetERC20ReturnType, T>;

0 comments on commit a7b45b7

Please sign in to comment.