Skip to content

Instantly share code, notes, and snippets.

@DavidVotrubec
Created October 17, 2018 13:25
Show Gist options
  • Save DavidVotrubec/67b413788be53ce9a90a54cac1349a79 to your computer and use it in GitHub Desktop.
Save DavidVotrubec/67b413788be53ce9a90a54cac1349a79 to your computer and use it in GitHub Desktop.
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