Skip to content

Commit

Permalink
Corrected minimum Ada check for governance vote command
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbgithub committed Aug 2, 2024
1 parent 9757078 commit c0c42af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -4205,10 +4205,10 @@ governanceVote() {
newBalance=$(( base_lovelace - min_fee ))
println LOG "New balance after subtracted tx fee is $(formatLovelace ${newBalance}) ADA ($(formatLovelace ${base_lovelace}) - $(formatLovelace ${min_fee}))"

if [[ ${base_lovelace} -lt ${fee} ]]; then
if [[ ${base_lovelace} -lt ${min_fee} ]]; then
println ERROR "\n${FG_RED}ERROR${NC}: Not enough ADA in base address!"\
"Funds in address: ${FG_LBLUE}$(formatLovelace ${base_lovelace})${NC} ADA"\
"Minimum required: ${FG_LBLUE}$(formatLovelace ${fee})${NC} ADA"
"Minimum required: ${FG_LBLUE}$(formatLovelace ${min_fee})${NC} ADA"
return 1
fi

Expand Down

0 comments on commit c0c42af

Please sign in to comment.