diff options
author | Jacob Evans <dekz@dekz.net> | 2018-11-26 18:23:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 18:23:19 +0800 |
commit | dc965da64eb8549a34bd1d67a5559c848083373d (patch) | |
tree | a34b0e80c4b6c73a2e4e9db641a4c6027a0b7362 /packages/migrations/src/migration.ts | |
parent | 1d83d99d87385c396a57bfdf48a8a0211ace557b (diff) | |
parent | 09a683557bdf8633e1e0ff85ebf8c8789f391c27 (diff) | |
download | dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar.gz dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar.bz2 dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar.lz dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar.xz dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.tar.zst dexon-sol-tools-dc965da64eb8549a34bd1d67a5559c848083373d.zip |
Merge pull request #1309 from 0xProject/bug/contract-artifacts/testnet-exchange
[contract-artifacts] Use Testnet Exchange artifact
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, |