use deps instead of onDeploy

This commit is contained in:
Jonathan Rainville 2019-02-22 08:37:11 -05:00 committed by Iuri Matias
parent a895e839fa
commit c5e29b7844

View File

@ -60,7 +60,7 @@ module.exports = {
}, },
SomeContract: { SomeContract: {
deployIf: 'await MyToken.methods.isAvailable().call()', deployIf: 'await MyToken.methods.isAvailable().call()',
onDeploy: ['$MyToken'], // Needed because otherwise Embark doesn't know that we depend on MyToken. Would be cleaner with `dependsOn` deps: ['MyToken'],
args: [ args: [
["$MyToken2", "$SimpleStorage"], ["$MyToken2", "$SimpleStorage"],
100 100