Created
October 17, 2018 13:25
-
-
Save DavidVotrubec/67b413788be53ce9a90a54cac1349a79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async function(deployer, _, accounts) { | |
let someContract = await SomeContract.deployed(); | |
try { | |
// If this contract method fails, the migration does not stop | |
await someContract.someMethod(namehash(''), web3.utils.sha3("eth"), accounts[0]); | |
} | |
catch (err) { | |
console.log('Deploy step X failed', err); | |
throw new Error('Deploy step X failed'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment