From 94f5a039d213efef0b31f4b55265af1b4a06be84 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Tue, 26 Mar 2019 19:16:55 -0400 Subject: [PATCH] Update migrations for coordinator and exchange contracts. --- packages/migrations/src/migration.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts index ecb9fb5b17..90bdd98742 100644 --- a/packages/migrations/src/migration.ts +++ b/packages/migrations/src/migration.ts @@ -22,6 +22,7 @@ export async function runMigrationsAsync( txDefaults: TxData, ): Promise { const provider = providerUtils.standardizeOrThrow(supportedProvider); + const chainId = await providerUtils.getChainIdAsync(provider); const web3Wrapper = new Web3Wrapper(provider); // Proxies @@ -53,6 +54,7 @@ export async function runMigrationsAsync( provider, txDefaults, zrxAssetData, + new BigNumber(chainId), ); // Dummy ERC20 tokens @@ -196,6 +198,7 @@ export async function runMigrationsAsync( provider, txDefaults, exchange.address, + new BigNumber(chainId), ); const contractAddresses = {