1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Remove try...catch from ConfigHelper

This commit is contained in:
Miquel A. Cabot 2022-06-21 11:29:05 +02:00
parent 255ed1ba44
commit 3a1abb2813

View File

@ -148,7 +148,6 @@ export class ConfigHelper {
// load from custom addresses structure
if (customAddresses) {
try {
const {
FixedPrice,
Dispenser,
@ -172,10 +171,6 @@ export class ConfigHelper {
startBlock: startBlock,
...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI })
}
} catch (e) {
// console.error(`ERROR: Could not load local contract address file: ${e.message}`)
// return null
}
} else {
// no custom addresses structure was passed, trying to load default
if (DefaultContractsAddresses[network]) {