aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/migration.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-11-26 06:57:43 +0800
committerJacob Evans <jacob@dekz.net>2018-11-26 06:57:43 +0800
commit09a683557bdf8633e1e0ff85ebf8c8789f391c27 (patch)
tree06437984e8047f55bd6ad5118385d485abc202a2 /packages/migrations/src/migration.ts
parent99e92a346b134c1e91ecf02db8124614d8fd971d (diff)
downloaddexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar.gz
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar.bz2
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar.lz
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar.xz
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.tar.zst
dexon-sol-tools-09a683557bdf8633e1e0ff85ebf8c8789f391c27.zip
chore: Update CHANGELOGS use mainnet ZRX amount in Forwarder.
Diffstat (limited to 'packages/migrations/src/migration.ts')
-rw-r--r--packages/migrations/src/migration.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts
index e4febb1f8..c684c4970 100644
--- a/packages/migrations/src/migration.ts
+++ b/packages/migrations/src/migration.ts
@@ -142,8 +142,10 @@ export async function runMigrationsAsync(provider: Provider, txDefaults: Partial
);
// 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, new BigNumber(1000000000000000000), txDefaults),
+ await zrxToken.transfer.sendTransactionAsync(forwarder.address, zrxForwarderAmount, txDefaults),
);
return {