import { zeroAddress as e } from "../../constants/protocol.constants.mjs";
import { ContractType as t } from "../../types/ethereum-network.types.mjs";
import { getProviderFromContract as n } from "../utils/getSignerFromContract.mjs";
//#region libs/shared/common/src/functions/web3/getPublicAddressBalance.ts
var r = async (r, i, a, o) => {
	let s = r.getContractWithFetcher(i, t.ERC20Contract, a);
	return a === e ? n(s).getBalance(o) : s.balanceOf(o);
};
//#endregion
export { r as getPublicAddressBalance };
