return analyticsAPI and make it optional

This commit is contained in:
TheJuze
2024-03-13 14:07:36 +03:00
parent 8dedc46cb5
commit cf2fd889a0
6 changed files with 8 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ export default class Orion {
}
this.env = envOrConfig;
config = {
analyticsAPI: envConfig?.analyticsAPI,
referralAPI: envConfig.referralAPI,
networks: Object.entries(envConfig.networks).map(([chainId, networkConfig]) => {
if (!isValidChainId(chainId)) throw new Error(`Invalid chainId: ${chainId}`);