Skip to content

Commit

Permalink
Set first network as active
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 committed Mar 9, 2024
1 parent 3f029f8 commit fec8695
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ethernaut-network/src/tasks/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ require('../scopes/network')
url,
}

if (Object.keys(networks).length === 1) {
networks.activeNetwork = alias
}

storage.storeNetworks(networks)

output.resultBox(`Added network ${alias} with provider ${url}`)
Expand Down

0 comments on commit fec8695

Please sign in to comment.