diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 20:36:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 21:02:25 +0800 |
commit | d8d15149fcfde98eb0e52e76e8232db90a3b58d6 (patch) | |
tree | 4aa4f04180531478771da6d74be735192fce94a2 /packages/contracts/deploy/migrations | |
parent | c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de (diff) | |
download | dexon-0x-contracts-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.gz dexon-0x-contracts-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.tar.zst dexon-0x-contracts-d8d15149fcfde98eb0e52e76e8232db90a3b58d6.zip |
Add WETH9 and mirations
Diffstat (limited to 'packages/contracts/deploy/migrations')
-rw-r--r-- | packages/contracts/deploy/migrations/migrate.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/contracts/deploy/migrations/migrate.ts b/packages/contracts/deploy/migrations/migrate.ts index e893e6a6f..e2c220f68 100644 --- a/packages/contracts/deploy/migrations/migrate.ts +++ b/packages/contracts/deploy/migrations/migrate.ts @@ -20,6 +20,7 @@ export const migrator = { const tokenTransferProxy = await deployer.deployAndSaveAsync('TokenTransferProxy'); const zrxToken = await deployer.deployAndSaveAsync('ZRXToken'); const etherToken = await deployer.deployAndSaveAsync('EtherToken'); + const makerEtherToken = await deployer.deployAndSaveAsync('WETH9'); const tokenReg = await deployer.deployAndSaveAsync('TokenRegistry'); const exchangeArgs = [zrxToken.address, tokenTransferProxy.address]; @@ -68,6 +69,18 @@ export const migrator = { gas: addTokenGasEstimate, }, ); + await tokenReg.addToken.sendTransactionAsync( + makerEtherToken.address, + 'Maker Ether Token', + 'WETH9', + 18, + constants.NULL_BYTES, + constants.NULL_BYTES, + { + from: owner, + gas: addTokenGasEstimate, + }, + ); for (const token of tokenInfo) { const totalSupply = new BigNumber(0); const args = [ |