Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Dec 10, 2024
1 parent a88bce0 commit 3d8d6a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ export default class AddCommand extends Command {
const network = manifest.result.getIn(['dataSources', 0, 'network']) as any;
const result = manifest.result.asMutable();
const isLocalHost = network === 'localhost'; // This flag prevent Etherscan lookups in case the network selected is `localhost`
let contractService: ContractService | undefined;

if (isLocalHost) this.warn('`localhost` network detected, prompting user for inputs');
const registry = await loadRegistry();
contractService = new ContractService(registry);
const contractService = new ContractService(registry);

let startBlock = startBlockFlag;
let contractName = contractNameFlag;
Expand Down

0 comments on commit 3d8d6a5

Please sign in to comment.