aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/migration.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 05:06:36 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 05:06:36 +0800
commit5f6a5e28e7d2832f7372a00a7d3a388da6babb17 (patch)
treed206113de7b5c2e0ab41cec3c0231206cae99054 /packages/migrations/src/migration.ts
parentb0792a85a4d002bfe54ba228bfeadf29c89bfe09 (diff)
parent825911ed89e63f065c1a843ad83fb28ed72bb8ee (diff)
downloaddexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar.gz
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar.bz2
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar.lz
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar.xz
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.tar.zst
dexon-sol-tools-5f6a5e28e7d2832f7372a00a7d3a388da6babb17.zip
Merge branch 'development' into feature/header-tweaks
Diffstat (limited to 'packages/migrations/src/migration.ts')
-rw-r--r--packages/migrations/src/migration.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts
index 61ac56938..c684c4970 100644
--- a/packages/migrations/src/migration.ts
+++ b/packages/migrations/src/migration.ts
@@ -47,6 +47,7 @@ export async function runMigrationsAsync(provider: Provider, txDefaults: Partial
artifacts.Exchange,
provider,
txDefaults,
+ zrxAssetData,
);
// Multisigs
@@ -140,6 +141,13 @@ export async function runMigrationsAsync(provider: Provider, txDefaults: Partial
zrxAssetData,
);
+ // Fund the Forwarder with ZRX
+ const zrxDecimals = await zrxToken.decimals.callAsync();
+ const zrxForwarderAmount = Web3Wrapper.toBaseUnitAmount(new BigNumber(5000), zrxDecimals);
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await zrxToken.transfer.sendTransactionAsync(forwarder.address, zrxForwarderAmount, txDefaults),
+ );
+
return {
erc20Proxy: erc20Proxy.address,
erc721Proxy: erc721Proxy.address,