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, gas: devConstants.GAS_ESTIMATE,
from: devConstants.TESTRPC_FIRST_ADDRESS, from: devConstants.TESTRPC_FIRST_ADDRESS,
}; };
const artifactsDir = '../migrations/artifacts/1.0.0'; const artifactsDir = `../migrations/artifacts/${constants.ARTIFACTS_VERSION}`;
await runMigrationsAsync(provider, artifactsDir, defaults); await runMigrationsAsync(provider, artifactsDir, defaults);
}); });

View File

@@ -6,4 +6,5 @@ export const constants = {
KOVAN_RPC_URL: 'https://kovan.infura.io/', KOVAN_RPC_URL: 'https://kovan.infura.io/',
ROPSTEN_RPC_URL: 'https://ropsten.infura.io/', ROPSTEN_RPC_URL: 'https://ropsten.infura.io/',
ZRX_DECIMALS: 18, ZRX_DECIMALS: 18,
ARTIFACTS_VERSION: '1.0.0',
}; };