Skip to content

Commit

Permalink
fix registry loading on localhost
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Donneger <[email protected]>
  • Loading branch information
YaroShkvorets and 0237h authored Dec 10, 2024
1 parent a7c66da commit c83c5c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ export default class AddCommand extends Command {
let contractService: ContractService | undefined;

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

Check failure on line 81 in packages/cli/src/commands/add.ts

View workflow job for this annotation

GitHub Actions / Lint

'contractService' is never reassigned. Use 'const' instead

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

0 comments on commit c83c5c5

Please sign in to comment.