Skip to content

Commit e0f2ee2

Browse files
fix: patch regression in CLI on networks without ENS (#491)
1 parent b669071 commit e0f2ee2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/utils/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { EnsPlugin, Network } from 'ethers';
22
import { address as voucherHubBellecourAddress } from '../generated/@iexec/voucher-contracts/deployments/bellecour/VoucherHubERC1967Proxy.js';
33
import { TEE_FRAMEWORKS } from './constant.js';
4+
import { ConfigurationError } from './errors.js';
45

56
export const CHAIN_SPECIFIC_FEATURES = {
67
ENS: 'ENS',
@@ -199,7 +200,7 @@ export const checkImplementedOnChain = (chainId, featureName) => {
199200
networkConfig?.notImplemented &&
200201
networkConfig.notImplemented.includes(featureName)
201202
) {
202-
throw new Error(
203+
throw new ConfigurationError(
203204
`${featureName} is not available on network ${networkConfig.name}`,
204205
);
205206
}

0 commit comments

Comments
 (0)