import { JsonRpcProvider as o, Contract as s } from "ethers";
const u = async (n, r, e) => {
  const c = new o(e), a = [
    "function balanceOf(address owner) view returns (uint256)",
    "function decimals() view returns (uint8)"
  ];
  if (!n.contractAddress)
    return "0";
  const t = new s(n.contractAddress, a, c);
  return t.balanceOf ? (await t.balanceOf(r)).toString() : "0";
};
export {
  u as getEvmTokenBalance
};
//# sourceMappingURL=getEvmTokenBalance.js.map
