diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-22 01:15:45 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-22 04:53:44 +0800 |
commit | 7fa5b474ebac649b6a23c8b9108e07c117dcc00b (patch) | |
tree | 2427772c0c2ca2d2661349dd6ea82d6ab92be5df /packages/migrations/src | |
parent | 3d25758b1d107528b0bc8a578e3c5ecf020395b3 (diff) | |
download | dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar.gz dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar.bz2 dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar.lz dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar.xz dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.tar.zst dexon-sol-tools-7fa5b474ebac649b6a23c8b9108e07c117dcc00b.zip |
Add ZRX balances and allowances to TraderInfo
Diffstat (limited to 'packages/migrations/src')
-rw-r--r-- | packages/migrations/src/2.0.0-beta-testnet/migration.ts | 1 | ||||
-rw-r--r-- | packages/migrations/src/2.0.0/migration.ts | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/migrations/src/2.0.0-beta-testnet/migration.ts b/packages/migrations/src/2.0.0-beta-testnet/migration.ts index c5780615f..cc9f5a859 100644 --- a/packages/migrations/src/2.0.0-beta-testnet/migration.ts +++ b/packages/migrations/src/2.0.0-beta-testnet/migration.ts @@ -82,6 +82,7 @@ export const runV2TestnetMigrationsAsync = async ( provider, txDefaults, exchange.address, + zrxAssetData, ); artifactsWriter.saveArtifact(orderValidator); diff --git a/packages/migrations/src/2.0.0/migration.ts b/packages/migrations/src/2.0.0/migration.ts index bddb020d2..e1dcea8b0 100644 --- a/packages/migrations/src/2.0.0/migration.ts +++ b/packages/migrations/src/2.0.0/migration.ts @@ -50,11 +50,12 @@ export const runV2MigrationsAsync = async (provider: Provider, artifactsDir: str artifactsWriter.saveArtifact(etherToken); // Exchange + const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address); const exchange = await ExchangeContract.deployFrom0xArtifactAsync( artifacts.Exchange, provider, txDefaults, - assetDataUtils.encodeERC20AssetData(zrxToken.address), + zrxAssetData, ); artifactsWriter.saveArtifact(exchange); |