diff --git a/qx/handle_tx.go b/qx/handle_tx.go index 58f38f77..0a6d1cf8 100644 --- a/qx/handle_tx.go +++ b/qx/handle_tx.go @@ -150,6 +150,8 @@ func TxSign(privkeyStrs []string, rawTxStr string, network string) (string, erro param = ¶ms.PrivNetParams case "mixnet": param = ¶ms.MixNetParams + default: + ErrExit(fmt.Errorf("invalid network (mainnet|testnet|privnet|mixnet)")) } if len(rawTxStr)%2 != 0 { @@ -200,6 +202,8 @@ func TxDecode(network string, rawTxStr string) { param = ¶ms.PrivNetParams case "mixnet": param = ¶ms.MixNetParams + default: + ErrExit(fmt.Errorf("invalid network (mainnet|testnet|privnet|mixnet)")) } strArr := strings.Split(rawTxStr, MTX_STR_SEPERATE) rawTxStr = strArr[0]