require(`../../constants/token-data/ERC20Registry.cjs`);const e=require(`../../error-handling/error-codes.constants.cjs`),t=require(`./caseInsensitive.utils.cjs`);require(`../../API/API.cjs`);var n=t=>{if(t.length===0)throw Error(`Token array cannot be empty`);let n=t.map(e=>e.chainId),r=n[0];if(!n.every(e=>e===r))throw Error(e.transactionErrorCodes.TOKENS_DO_NOT_BELONG_SAME_CHAIN);return r},r=(e,n)=>!e||!n?!1:t.caseInsensitiveEqual(e.erc20TokenAddress,n.erc20TokenAddress)&&e.chainId===n.chainId;exports.isSameERC20Token=r,exports.validateAndGetChainId=n;