aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 03:36:56 +0800
committerFabio Berger <me@fabioberger.com>2018-07-26 03:36:56 +0800
commit7fc0fd9fb69a77a4a3269b32e59eb8ab458bf30a (patch)
tree2eb76b7c45b572255f7cd500f4b82e001c6a182c /packages/migrations
parenta0db69ee05902faa291a317e58d0dd5289e6feda (diff)
downloaddexon-sol-tools-7fc0fd9fb69a77a4a3269b32e59eb8ab458bf30a.tar.gz
dexon-sol-tools-7fc0fd9fb69a77a4a3269b32e59eb8ab458bf30a.tar.zst
dexon-sol-tools-7fc0fd9fb69a77a4a3269b32e59eb8ab458bf30a.zip
Prettier fixes
Diffstat (limited to 'packages/migrations')
-rw-r--r--packages/migrations/README.md5
-rw-r--r--packages/migrations/src/2.0.0-beta-testnet/migration.ts15
2 files changed, 11 insertions, 9 deletions
diff --git a/packages/migrations/README.md b/packages/migrations/README.md
index 99e4565b3..f4715cfa1 100644
--- a/packages/migrations/README.md
+++ b/packages/migrations/README.md
@@ -61,8 +61,9 @@ yarn migrate:v2-beta-testnet
**Note:** Ledger settings `contract data` must be `on`, and `browser support` must be set to `off`.
Post-publish steps:
-1. Since we don't re-deploy the `WETH9` nor `ZRXToken` contracts, manually copy over the artifacts for them from `2.0.0` into `2.0.0-beta-testnet` and add the Kovan & ganache addresses to both of their `networks` sections.
-2. We now need to copy over the network `50` settings from the `2.0.0` artifacts to the `2.0.0-beta-testnet` artifacts for the newly deployed contracts (e.g `Exchange`, `ERC20Proxy`, `ERC721Proxy` and `AssetProxyOwner`)
+
+1. Since we don't re-deploy the `WETH9` nor `ZRXToken` contracts, manually copy over the artifacts for them from `2.0.0` into `2.0.0-beta-testnet` and add the Kovan & ganache addresses to both of their `networks` sections.
+2. We now need to copy over the network `50` settings from the `2.0.0` artifacts to the `2.0.0-beta-testnet` artifacts for the newly deployed contracts (e.g `Exchange`, `ERC20Proxy`, `ERC721Proxy` and `AssetProxyOwner`)
#### V2 (under development) smart contracts
diff --git a/packages/migrations/src/2.0.0-beta-testnet/migration.ts b/packages/migrations/src/2.0.0-beta-testnet/migration.ts
index f74d16906..19fe5f02c 100644
--- a/packages/migrations/src/2.0.0-beta-testnet/migration.ts
+++ b/packages/migrations/src/2.0.0-beta-testnet/migration.ts
@@ -43,21 +43,22 @@ export const runV2TestnetMigrationsAsync = async (
// Deploy Exchange
const zrxAddressOnKovan = '0x6ff6c0ff1d68b964901f986d4c9fa3ac68346570';
const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxAddressOnKovan);
- const exchange = await ExchangeContract.deployFrom0xArtifactAsync(artifacts.Exchange, provider, txDefaults, zrxAssetData);
+ const exchange = await ExchangeContract.deployFrom0xArtifactAsync(
+ artifacts.Exchange,
+ provider,
+ txDefaults,
+ zrxAssetData,
+ );
artifactsWriter.saveArtifact(exchange);
let txHash;
// Register AssetProxies in Exchange
- txHash = await exchange.registerAssetProxy.sendTransactionAsync(
- erc20proxy.address,
- );
+ txHash = await exchange.registerAssetProxy.sendTransactionAsync(erc20proxy.address);
logUtils.log(`transactionHash: ${txHash}`);
logUtils.log('Registering ERC20Proxy');
await web3Wrapper.awaitTransactionSuccessAsync(txHash);
- txHash = await exchange.registerAssetProxy.sendTransactionAsync(
- erc721proxy.address,
- );
+ txHash = await exchange.registerAssetProxy.sendTransactionAsync(erc721proxy.address);
logUtils.log(`transactionHash: ${txHash}`);
logUtils.log('Registering ERC721Proxy');
await web3Wrapper.awaitTransactionSuccessAsync(txHash);