Skip to content

Commit

Permalink
Fix send all
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Apr 17, 2024
1 parent 6f0078c commit 9b72314
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/cnode-helper-scripts/cntools.sh
Expand Up @@ -1401,7 +1401,6 @@ function main {
;;
2) continue ;;
esac
echo
fi

# Amount
Expand Down Expand Up @@ -1442,11 +1441,9 @@ function main {
include_fee="yes"
fi

echo

if [[ ${amount_lovelace} -eq ${assets[${index_prefix}lovelace]} ]]; then
if [[ ${#assets_left[@]} -gt 1 ]]; then
println DEBUG "All ADA selected to be sent, automatically add all tokens?"
println DEBUG "\nAll ADA selected to be sent, automatically add all tokens?"
select_opt "[y] Yes" "[n] No" "[Esc] Cancel"
case $? in
0) declare -gA assets_left=()
Expand All @@ -1460,7 +1457,7 @@ function main {
2) continue ;;
esac
else
assets_left[lovelace]=0
unset assets_left
assets_to_send[lovelace]=${amount_lovelace}
fi
else
Expand Down

0 comments on commit 9b72314

Please sign in to comment.