aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 08:35:24 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 08:35:24 +0800
commit22c4ee6ef709610155191c4b0629ba0c41ce908f (patch)
treef460d684167dcfc0307934a60f0a5b51418feb3f /packages/website/ts/blockchain.ts
parentfe8f2d87c79cb25a7879c2e737dbdd64b7c40f60 (diff)
downloaddexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.gz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.bz2
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.lz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.xz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.zst
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.zip
Update first two string enums to native type
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 6877a301a..336397f7f 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -135,11 +135,11 @@ export class Blockchain {
const isConnected = !_.isUndefined(newNetworkId);
if (!isConnected) {
this.networkId = newNetworkId;
- this.dispatcher.encounteredBlockchainError(BlockchainErrs.DISCONNECTED_FROM_ETHEREUM_NODE);
+ this.dispatcher.encounteredBlockchainError(BlockchainErrs.DisconnectedFromEthereumNode);
this.dispatcher.updateShouldBlockchainErrDialogBeOpen(true);
} else if (this.networkId !== newNetworkId) {
this.networkId = newNetworkId;
- this.dispatcher.encounteredBlockchainError('');
+ this.dispatcher.encounteredBlockchainError(BlockchainErrs.NoError);
await this.fetchTokenInformationAsync();
await this.rehydrateStoreWithContractEvents();
}
@@ -712,8 +712,8 @@ export class Blockchain {
_.find(allTokens, {symbol: configs.defaultTrackedTokenSymbols[0]}),
_.find(allTokens, {symbol: configs.defaultTrackedTokenSymbols[1]}),
];
- this.dispatcher.updateChosenAssetTokenAddress(Side.deposit, mostPopularTradingPairTokens[0].address);
- this.dispatcher.updateChosenAssetTokenAddress(Side.receive, mostPopularTradingPairTokens[1].address);
+ this.dispatcher.updateChosenAssetTokenAddress(Side.Deposit, mostPopularTradingPairTokens[0].address);
+ this.dispatcher.updateChosenAssetTokenAddress(Side.Receive, mostPopularTradingPairTokens[1].address);
this.dispatcher.updateBlockchainIsLoaded(true);
}
private async instantiateContractIfExistsAsync(artifact: any, address?: string): Promise<ContractInstance> {