From 04de9aa1751d97da89af4c0c15f3ca12af72baf8 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 9 Jan 2018 12:49:35 +0300 Subject: [PATCH] spv xmy, zcl --- react/src/components/addcoin/addcoinOptionsCrypto.js | 8 ++++++++ react/src/components/addcoin/payload.js | 2 +- react/src/util/coinHelper.js | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/react/src/components/addcoin/addcoinOptionsCrypto.js b/react/src/components/addcoin/addcoinOptionsCrypto.js index b5d4c98..017de98 100644 --- a/react/src/components/addcoin/addcoinOptionsCrypto.js +++ b/react/src/components/addcoin/addcoinOptionsCrypto.js @@ -88,6 +88,14 @@ const addCoinOptionsCrypto = () => { label: 'Hush (HUSH)', icon: 'HUSH', value: `HUSH|spv`, + }, { + label: 'Zclassic (ZCL)', + icon: 'ZCL', + value: `ZCL|spv`, + }, { + label: 'Myriad (XMY)', + icon: 'XMY', + value: `XMY|spv`, }); } diff --git a/react/src/components/addcoin/payload.js b/react/src/components/addcoin/payload.js index b1ec7b5..7c52348 100644 --- a/react/src/components/addcoin/payload.js +++ b/react/src/components/addcoin/payload.js @@ -135,7 +135,7 @@ export function startCurrencyAssetChain(confpath, coin, mode) { } export function startAssetChain(confpath, coin, mode, getSuppyOnly) { - let assetChainPorts = window.require('electron').remote.getCurrentWindow().assetChainPorts; + const assetChainPorts = window.require('electron').remote.getCurrentWindow().assetChainPorts; const acConfig = { SUPERNET: { diff --git a/react/src/util/coinHelper.js b/react/src/util/coinHelper.js index 69b3e3e..dbeaecf 100644 --- a/react/src/util/coinHelper.js +++ b/react/src/util/coinHelper.js @@ -6,6 +6,14 @@ export function getCoinTitle(coin) { let hideTitle = false; switch (coin) { + case 'XMY': + coinlogo = 'xmy'; + coinname = 'Myriad'; + break; + case 'ZCL': + coinlogo = 'zcl'; + coinname = 'Zclassic'; + break; case 'HUSH': coinlogo = 'hush'; coinname = 'Hush';