aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--packages/migrations/CHANGELOG.json13
-rw-r--r--packages/migrations/src/migration.ts4
2 files changed, 16 insertions, 1 deletions
diff --git a/packages/migrations/CHANGELOG.json b/packages/migrations/CHANGELOG.json
index dea87b477..f302838a2 100644
--- a/packages/migrations/CHANGELOG.json
+++ b/packages/migrations/CHANGELOG.json
@@ -1,5 +1,18 @@
[
{
+ "version": "2.2.0",
+ "changes": [
+ {
+ "note": "Deploy testnet Exchange arfitact. Previously mainnet Exchange artifact was deployed.",
+ "pr": 1309
+ },
+ {
+ "note": "Fund the Forwarder with ZRX for fees.",
+ "pr": 1309
+ }
+ ]
+ },
+ {
"version": "2.1.0",
"changes": [
{
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 {