import { ContractType as e } from "../../types/ethereum-network.types.mjs";
import { zeroAddress as t } from "../../constants/protocol.constants.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, e.ERC20Contract, a);
	return a === t ? n(s).getBalance(o) : s.balanceOf(o);
};
//#endregion
export { r as getPublicAddressBalance };
