Skip to content

Commit 508335d

Browse files
committed
Update 2026-01: Gov.Action Description output
- This update adds an extra Output for the script 24b_regVote.sh. It now also shows in the summary the Description of the govActionMetadata together with your voting decision. So you can double check again that you are about to vote with the correct decision on the correct govAction.
1 parent d495605 commit 508335d

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

cardano/mainnet/24b_regVote.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ for (( tmpCnt=2; tmpCnt<${paramCnt}; tmpCnt++ ))
197197
read voteActionAnswer;
198198
} <<< $(jq -r "to_entries | (.[0].key // \"-\", (.[0].value | to_entries | (.[0].key // \"-\", .[0].value.anchor.dataHash // \"-\", .[0].value.anchor.url // \"-\", .[0].value.decision // \"-\" )))" <<< "${voteJSON}")
199199

200+
#Additionally read the description from the voting file
201+
voteActionDescription=$(jq -r '.description // "-"' 2> /dev/null "${metafile}");
202+
203+
#Show the Description
204+
echo -e "\e[0m Description: \e[33m${voteActionDescription}\e[0m";
205+
200206
#Get voteType
201207
case ${voteActionVoter%%-*} in
202208
"committee") voteType="Committee";;

cardano/mainnet/sha256sum_sposcripts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ b5840cb93c592ea51b4f253cdd7d0643c610d03cdb2decd94a3ce0e8d152d5d1 23c_regComAuth
4444
d7d4753a6066fd792d9b46238c4cfe365e0ba342b3bdf891048f8795df8962cd 23d_checkComOnChain.sh
4545
18cb3611f363ac081280e52cefffe47eaa7b9038f281acee9517fe62287633b1 23e_retComColdKeys.sh
4646
9e0b690507477c0abc0bb512ffe5ec97a0a2419ca4f02d5848f54390a4c9f700 24a_genVote.sh
47-
4ba6a4e6bdab571335df54921de7b569aa6ddd475550607cbf3c50e69e6ac791 24b_regVote.sh
47+
8e45c35d0cf778efd65f853338a190ab15aa44db8ce415b2f187d01aace8d789 24b_regVote.sh
4848
8517dc25adb68139d2eddf7e44ba1de5cedd3e84ab6455ca999141a2974a5763 24c_queryVote.sh
4949
0004e496a15589cd01d936c70aef59b17aa378c8f64783789224d579f7a016a1 25a_genAction.sh
5050
087fae298f192aa01db38ac403227f12c33eed553e5594fc146d252e28afa0a7 25b_regAction.sh

cardano/testnet/24b_regVote.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ for (( tmpCnt=2; tmpCnt<${paramCnt}; tmpCnt++ ))
197197
read voteActionAnswer;
198198
} <<< $(jq -r "to_entries | (.[0].key // \"-\", (.[0].value | to_entries | (.[0].key // \"-\", .[0].value.anchor.dataHash // \"-\", .[0].value.anchor.url // \"-\", .[0].value.decision // \"-\" )))" <<< "${voteJSON}")
199199

200+
#Additionally read the description from the voting file
201+
voteActionDescription=$(jq -r '.description // "-"' 2> /dev/null "${metafile}");
202+
203+
#Show the Description
204+
echo -e "\e[0m Description: \e[33m${voteActionDescription}\e[0m";
205+
200206
#Get voteType
201207
case ${voteActionVoter%%-*} in
202208
"committee") voteType="Committee";;

0 commit comments

Comments
 (0)