File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,6 @@ showToAddr=${adahandleName:-"${toAddr}.addr"} #shows the adahandle instead of th
252252
253253stakingAddr=$( cat ${stakeAddr} .addr) ; check_address " ${stakingAddr} "
254254
255-
256255echo -e " \e[0mClaim Staking Rewards from Address\e[32m ${stakeAddr} .addr\e[0m to Address\e[32m ${showToAddr} \e[0m with funds from Address\e[32m ${fromAddr} .addr\e[0m"
257256echo
258257
@@ -262,9 +261,9 @@ ttl=$(( ${currentTip} + ${defTTL} ))
262261
263262# Read ProtocolParameters
264263case ${workMode} in
265- " online" ) protocolParametersJSON=$( ${cardanocli} ${cliEra} query protocol-parameters ) ;; # onlinemode
264+ " online" ) protocolParametersJSON=$( ${cardanocli} ${cliEra} query protocol-parameters) ;; # onlinemode
266265 " light" ) protocolParametersJSON=${lightModeParametersJSON} ;; # lightmode
267- " offline" ) protocolParametersJSON=$( jq " .protocol.parameters" <<< ${offlineJSON} ) ;; # offlinemode
266+ " offline" ) readOfflineFile ; protocolParametersJSON=$( jq " .protocol.parameters" <<< ${offlineJSON} ) ;; # offlinemode
268267esac
269268checkError " $? " ; if [ $? -ne 0 ]; then exit $? ; fi
270269
@@ -292,7 +291,7 @@ if [[ "${sendFromAddr}" == "${sendToAddr}" ]]; then rxcnt="1"; else rxcnt="2"; e
292291 if [ $? -ne 0 ]; then stopProcessAnimation; echo -e " \e[35mERROR - ${rewardsJSON} \e[0m\n" ; exit $? ; else stopProcessAnimation; fi ;
293292 ;;
294293
295- " offline" ) readOfflineFile ; # Reads the offlinefile into the offlineJSON variable
294+ " offline" ) # Reads the offlinefile into the offlineJSON variable
296295 rewardsJSON=$( jq -r " .address.\" ${stakingAddr} \" .rewardsJSON" <<< ${offlineJSON} 2> /dev/null)
297296 if [[ " ${rewardsJSON} " == null ]]; then echo -e " \e[35mAddress not included in the offline transferFile, please include it first online!\e[0m\n" ; exit ; fi
298297 ;;
Original file line number Diff line number Diff line change 11914c17619c450e6c0ddef3c632e39288e6d50475a5932a37a09fe7131c43d968 00_common.sh
2- 6e5569a1e90968ce174a1609bda86fbe233f197e57eff79f5158354ad605c4bc 01_claimRewards.sh
2+ 3f5685d008f29a31085082f72670de881ecb89b7c549b260e1a0771bd6c69ecf 01_claimRewards.sh
338f98ef3f0983ed12ba714390b9a528ccf06b41f51dfcd1d52c50d86f038455c8 01_protectKey.sh
440bf24a499ccc8f6665cc9b5b2e40f8af3f653656b23cd5e3eb99e27ac9279678 01_queryAddress.sh
55975254444420291bbe3eafe50cba4d09e08ca9fa939da99c63803f0020a36679 01_sendAssets.sh
Original file line number Diff line number Diff line change @@ -252,7 +252,6 @@ showToAddr=${adahandleName:-"${toAddr}.addr"} #shows the adahandle instead of th
252252
253253stakingAddr=$( cat ${stakeAddr} .addr) ; check_address " ${stakingAddr} "
254254
255-
256255echo -e " \e[0mClaim Staking Rewards from Address\e[32m ${stakeAddr} .addr\e[0m to Address\e[32m ${showToAddr} \e[0m with funds from Address\e[32m ${fromAddr} .addr\e[0m"
257256echo
258257
@@ -262,9 +261,9 @@ ttl=$(( ${currentTip} + ${defTTL} ))
262261
263262# Read ProtocolParameters
264263case ${workMode} in
265- " online" ) protocolParametersJSON=$( ${cardanocli} ${cliEra} query protocol-parameters ) ;; # onlinemode
264+ " online" ) protocolParametersJSON=$( ${cardanocli} ${cliEra} query protocol-parameters) ;; # onlinemode
266265 " light" ) protocolParametersJSON=${lightModeParametersJSON} ;; # lightmode
267- " offline" ) protocolParametersJSON=$( jq " .protocol.parameters" <<< ${offlineJSON} ) ;; # offlinemode
266+ " offline" ) readOfflineFile ; protocolParametersJSON=$( jq " .protocol.parameters" <<< ${offlineJSON} ) ;; # offlinemode
268267esac
269268checkError " $? " ; if [ $? -ne 0 ]; then exit $? ; fi
270269
@@ -292,7 +291,7 @@ if [[ "${sendFromAddr}" == "${sendToAddr}" ]]; then rxcnt="1"; else rxcnt="2"; e
292291 if [ $? -ne 0 ]; then stopProcessAnimation; echo -e " \e[35mERROR - ${rewardsJSON} \e[0m\n" ; exit $? ; else stopProcessAnimation; fi ;
293292 ;;
294293
295- " offline" ) readOfflineFile ; # Reads the offlinefile into the offlineJSON variable
294+ " offline" ) # Reads the offlinefile into the offlineJSON variable
296295 rewardsJSON=$( jq -r " .address.\" ${stakingAddr} \" .rewardsJSON" <<< ${offlineJSON} 2> /dev/null)
297296 if [[ " ${rewardsJSON} " == null ]]; then echo -e " \e[35mAddress not included in the offline transferFile, please include it first online!\e[0m\n" ; exit ; fi
298297 ;;
You can’t perform that action at this time.
0 commit comments