diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 07:11:16 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 07:11:16 +0800 |
commit | b055055253c53a9db4ec730d7285dce9c38e7a59 (patch) | |
tree | 057e6f24529b03f6d4565361bb2cef61836ab482 /packages/migrations/src/migration.ts | |
parent | ae570dba05cfc0d696c616d05804152791d29677 (diff) | |
parent | 6e3d70af566b9d1fcfce83a055793a08f19ee160 (diff) | |
download | dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.gz dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.bz2 dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.lz dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.xz dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.zst dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.zip |
Merge branch 'development' into feature/instant/token-picker-events
Diffstat (limited to 'packages/migrations/src/migration.ts')
-rw-r--r-- | packages/migrations/src/migration.ts | 8 |
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, |