Skip to content

Commit

Permalink
missed output fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Nov 4, 2024
1 parent ff50216 commit f591fe7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ function main {
println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "MultiSig")"
fi
if [[ -n ${walletName} ]]; then
println " : Wallet => ${FG_GREEN}${walletName}${NC}"
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)"
Expand Down Expand Up @@ -3905,9 +3905,13 @@ 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}")"
println "$(printf "%-20s ${FG_DGRAY}: type =>${NC} ${FG_LGRAY}%s${NC}" "" "${vote_delegation_type}")"
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 " : Wallet => ${FG_GREEN}${walletName}${NC}"
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)"
Expand Down

0 comments on commit f591fe7

Please sign in to comment.