Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/splitting testnet #225

Merged
merged 20 commits into from Aug 20, 2019

Fixing an issue when deployment is done in tests.

  • Loading branch information
Freydal committed Aug 20, 2019
commit aa1aeeaa59dbcbce412b259a3b1ab1bfa0a8d567
@@ -30,7 +30,7 @@ before(async () => {
provider.addProvider(rpcSubprovider);
} else {
const ganacheSubprovider = new GanacheSubprovider({
network_id: 6174,
network_id: 6175,
mnemonic: process.env.npm_package_config_test_mnemonic,
});
provider.addProvider(ganacheSubprovider);
@@ -55,8 +55,16 @@ before(async () => {
from: accounts[0].toLowerCase(),
};


if (!useGeth) {
await migrations(provider, { from: accounts[0].toLowerCase() });
config.migratedContracts = await migrations(provider, { from: accounts[0].toLowerCase() });
config.votingAddress = config.migratedContracts.voting.address;
config.treasuryAddress = config.migratedContracts.treasury.address;
config.kosuTokenAddress = config.migratedContracts.kosuToken.address;
config.eventEmitterAddress = config.migratedContracts.eventEmitter.address;
config.orderGatewayAddress = config.migratedContracts.orderGateway.address;
config.posterRegistryAddress = config.migratedContracts.posterRegistry.address;
config.validatorRegistryAddress = config.migratedContracts.validatorRegistry.address;
}
global.basicTradeSubContract = await kosuSubContractHelper(provider, {
from: accounts[0].toLowerCase(),
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.