diff --git a/common/features/config/networks/static/reducer.ts b/common/features/config/networks/static/reducer.ts index b68a3b24..b66f9397 100644 --- a/common/features/config/networks/static/reducer.ts +++ b/common/features/config/networks/static/reducer.ts @@ -467,6 +467,32 @@ export const STATIC_NETWORKS_INITIAL_STATE: StaticNetworksState = { } }, + GO_TESTNET: { + id: 'GO_TESTNET', + name: 'GO', + unit: 'GO', + chainId: 31337, + isCustom: false, + color: '#00b04a', + blockExplorer: makeExplorer({ + name: 'GoChain Testnet Explorer', + origin: 'https://testnet-explorer.gochain.io' + }), + tokens: [], + contracts: [], + isTestnet: true, + dPathFormats: { + [SecureWalletName.TREZOR]: GO_DEFAULT, + [SecureWalletName.SAFE_T]: GO_DEFAULT, + [InsecureWalletName.MNEMONIC_PHRASE]: GO_DEFAULT + }, + gasPriceSettings: { + min: 2, + max: 60, + initial: 2 + } + }, + EOSC: { id: 'EOSC', name: 'EOS Classic', @@ -491,6 +517,7 @@ export const STATIC_NETWORKS_INITIAL_STATE: StaticNetworksState = { initial: 20 } }, + ESN: { id: 'ESN', name: 'EthersocialNetwork', diff --git a/common/libs/nodes/configs.ts b/common/libs/nodes/configs.ts index 18505415..4ce5ad6a 100644 --- a/common/libs/nodes/configs.ts +++ b/common/libs/nodes/configs.ts @@ -195,6 +195,15 @@ export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = { } ], + GO_TESTNET: [ + { + name: makeNodeName('GO_TESTNET', 'go_testnet'), + type: 'rpc', + service: 'testnet-rpc.gochain.io', + url: 'https://testnet-rpc.gochain.io/' + } + ], + EOSC: [ { name: makeNodeName('EOSC', 'eosc'), diff --git a/shared/enclave/server/views/passphrase.html b/shared/enclave/server/views/passphrase.html index 11f395ef..fd95a189 100644 --- a/shared/enclave/server/views/passphrase.html +++ b/shared/enclave/server/views/passphrase.html @@ -35,7 +35,6 @@ var passphrase = ""; function unlockWithPassphrase() { - if (!passphrase.length) return; ipcRenderer.send('$EVENT', passphrase); } diff --git a/shared/types/network.d.ts b/shared/types/network.d.ts index 12a55871..5102cc54 100644 --- a/shared/types/network.d.ts +++ b/shared/types/network.d.ts @@ -18,6 +18,7 @@ type StaticNetworkIds = | 'RSK' | 'RSK_TESTNET' | 'GO' + | 'GO_TESTNET' | 'EOSC' | 'ESN';