convert nettype to int to return correct rpc port

This commit is contained in:
plowsof 2022-07-09 17:41:06 +01:00
parent b26f38d37e
commit 8199ef004d

View file

@ -2253,7 +2253,7 @@ ApplicationWindow {
} }
function getDefaultDaemonRpcPort(networkType) { function getDefaultDaemonRpcPort(networkType) {
switch (networkType) { switch (parseInt(networkType)) {
case NetworkType.STAGENET: case NetworkType.STAGENET:
return 38081; return 38081;
case NetworkType.TESTNET: case NetworkType.TESTNET: