You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticgetInstance(network: string): Ergo{constconfig=getErgoConfig(network);if(!Ergo._instances){Ergo._instances=newLRUCache<string,Ergo>({max: config.network.maxLRUCacheInstances,});}if(!Ergo._instances.has(config.network.name)){if(network){Ergo._instances.set(config.network.name,newErgo(network));}else{thrownewError(`Ergo.getInstance received an unexpected network: ${network}.`,);}}returnErgo._instances.get(config.network.name)asErgo;}
when initializing a network if I enter an invalid network like “sadefcqwr,l” no error will be returned.
Case
based on the code below:
when initializing a network if I enter an invalid network like “sadefcqwr,l” no error will be returned.
this is the code I write:
and this is the output:
The text was updated successfully, but these errors were encountered: