diff --git a/scripts/cnode-helper-scripts/cntools.sh b/scripts/cnode-helper-scripts/cntools.sh index f2f6f2d88..adf2a18f3 100755 --- a/scripts/cnode-helper-scripts/cntools.sh +++ b/scripts/cnode-helper-scripts/cntools.sh @@ -1141,14 +1141,14 @@ function main { getDRepIds ${vote_delegation_type} ${vote_delegation_hash} println "$(printf "%-20s ${FG_DGRAY}: CIP-105 =>${NC} ${FG_LGRAY}%s${NC}" "Delegation" "${drep_id}")" println "$(printf "%-20s ${FG_DGRAY}: CIP-129 =>${NC} ${FG_LGRAY}%s${NC}" "" "${drep_id_cip129}")" + if [[ -n ${walletName} ]]; then + println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")" + fi if [[ ${vote_delegation_type} = keyHash ]]; then println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "Key")" else println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "MultiSig")" fi - if [[ -n ${walletName} ]]; then - println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")" - fi if getDRepStatus ${vote_delegation_type} ${vote_delegation_hash}; then [[ $(getEpoch) -lt ${drep_expiry} ]] && expire_status="${FG_GREEN}active${NC}" || expire_status="${FG_RED}inactive${NC} (vote power does not count)" println "$(printf "%-20s ${FG_DGRAY}:${NC} epoch ${FG_LBLUE}%s${NC} - %s" "DRep expiry" "${drep_expiry}" "${expire_status}")" @@ -3905,14 +3905,14 @@ function main { getDRepIds ${vote_delegation_type} ${vote_delegation_hash} println "$(printf "%-20s ${FG_DGRAY}: CIP-105 =>${NC} ${FG_LGRAY}%s${NC}" "Delegation" "${drep_id}")" println "$(printf "%-20s ${FG_DGRAY}: CIP-129 =>${NC} ${FG_LGRAY}%s${NC}" "" "${drep_id_cip129}")" + if [[ -n ${walletName} ]]; then + println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")" + fi if [[ ${vote_delegation_type} = keyHash ]]; then println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "Key")" else println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "MultiSig")" fi - if [[ -n ${walletName} ]]; then - println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")" - fi if getDRepStatus ${vote_delegation_type} ${vote_delegation_hash}; then [[ ${current_epoch} -lt ${drep_expiry} ]] && expire_status="${FG_GREEN}active${NC}" || expire_status="${FG_RED}inactive${NC} (vote power does not count)" println "$(printf "%-20s ${FG_DGRAY}:${NC} epoch ${FG_LBLUE}%s${NC} - %s" "DRep expiry" "${drep_expiry}" "${expire_status}")"