Skip to content

Commit 3ba8b38

Browse files
authored
Fix restart flag (#235)
1 parent e3e3cad commit 3ba8b38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrate-dao.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ const utils = require('./utils.js')
22
const sanitize = require('./sanitize')
33

44
async function migrateDAO ({ arcVersion, web3, spinner, confirm, opts, migrationParams, logTx, previousMigration, customAbisLocation, restart, getState, setState, cleanState }) {
5+
const network = await web3.eth.net.getNetworkType()
56
if (restart) {
6-
cleanState()
7+
cleanState(network)
78
}
89

9-
const network = await web3.eth.net.getNetworkType()
1010
let deploymentState = getState(network)
1111

1212
// sanitize the parameters

0 commit comments

Comments
 (0)