Put ARTIFACTS_VERSION in a config

This commit is contained in:
Leonid Logvinov
2018-05-10 15:06:35 +02:00
parent 97831e3702
commit 1dec6a442e
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,6 @@ before('migrate contracts', async function() {
gas: devConstants.GAS_ESTIMATE,
from: devConstants.TESTRPC_FIRST_ADDRESS,
};
const artifactsDir = '../migrations/artifacts/1.0.0';
const artifactsDir = `../migrations/artifacts/${constants.ARTIFACTS_VERSION}`;
await runMigrationsAsync(provider, artifactsDir, defaults);
});