Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1898 from trufflesuite/fix-dryrun-check
Browse files Browse the repository at this point in the history
Parse string numbers from config.network_id during dry-run check
  • Loading branch information
CruzMolina committed Apr 10, 2019
2 parents 5220e3a + f9fc3a1 commit 2f9db72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/truffle-core/lib/commands/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ var command = {

var dryRun = options.dryRun === true;
var production =
networkWhitelist.includes(conf.network_id) || conf.production;
networkWhitelist.includes(parseInt(conf.network_id)) ||
conf.production;

// Dry run only
if (dryRun) {
Expand Down

0 comments on commit 2f9db72

Please sign in to comment.