aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-11-26 06:37:31 +0800
committerJacob Evans <jacob@dekz.net>2018-11-26 06:37:31 +0800
commit99e92a346b134c1e91ecf02db8124614d8fd971d (patch)
treea0077c41e1fb0950cb20abfb9540bbd846054903 /packages/migrations
parentf0f6b26c3bb206f59549e086b788da85bedd26f2 (diff)
downloaddexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar.gz
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar.bz2
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar.lz
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar.xz
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.tar.zst
dexon-sol-tools-99e92a346b134c1e91ecf02db8124614d8fd971d.zip
chore: Fund forwarder in migrations
Diffstat (limited to 'packages/migrations')
-rw-r--r--packages/migrations/src/migration.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts
index 04d1abd4c..e4febb1f8 100644
--- a/packages/migrations/src/migration.ts
+++ b/packages/migrations/src/migration.ts
@@ -141,6 +141,11 @@ export async function runMigrationsAsync(provider: Provider, txDefaults: Partial
zrxAssetData,
);
+ // Fund the Forwarder with ZRX
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await zrxToken.transfer.sendTransactionAsync(forwarder.address, new BigNumber(1000000000000000000), txDefaults),
+ );
+
return {
erc20Proxy: erc20Proxy.address,
erc721Proxy: erc721Proxy.address,