diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-09-05 00:48:13 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-09-05 02:07:56 +0800 |
commit | 66ed6b9b887b97fa117d91f1034ad1aa3c095249 (patch) | |
tree | aee5c758ad212c4a6596dd0a80adc3c125bae331 /packages/migrations/src/migrate.ts | |
parent | 9304d09da6c3a78e25caf67a024b0cfef4a3b922 (diff) | |
download | dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar.gz dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar.bz2 dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar.lz dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar.xz dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.tar.zst dexon-sol-tools-66ed6b9b887b97fa117d91f1034ad1aa3c095249.zip |
Update mainnet configs
Diffstat (limited to 'packages/migrations/src/migrate.ts')
-rw-r--r-- | packages/migrations/src/migrate.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/migrations/src/migrate.ts b/packages/migrations/src/migrate.ts index 6c8b38762..e3651f2dc 100644 --- a/packages/migrations/src/migrate.ts +++ b/packages/migrations/src/migrate.ts @@ -46,7 +46,7 @@ const args = yargs.argv; await runV2MigrationsAsync(provider, artifactsDir, txDefaults); break; case ContractVersions.V2Testnet: - provider = await providerFactory.getLedgerProviderAsync(); + provider = await providerFactory.getKovanLedgerProviderAsync(); web3Wrapper = new Web3Wrapper(provider); accounts = await web3Wrapper.getAvailableAddressesAsync(); txDefaults = { @@ -56,12 +56,13 @@ const args = yargs.argv; await runV2TestnetMigrationsAsync(provider, artifactsDir, txDefaults); break; case ContractVersions.V2Mainnet: - provider = await providerFactory.getLedgerProviderAsync(); + provider = await providerFactory.getMainnetLedgerProviderAsync(); web3Wrapper = new Web3Wrapper(provider); accounts = await web3Wrapper.getAvailableAddressesAsync(); txDefaults = { - from: accounts[0], + from: accounts[2], gas: devConstants.GAS_LIMIT, + gasPrice: 6000000000, }; await runV2MainnetMigrationsAsync(provider, artifactsDir, txDefaults); break; |