We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a94853 commit 62141c0Copy full SHA for 62141c0
1 file changed
migration/verification/verify-proposal.sh
@@ -0,0 +1,12 @@
1
+DAO_ACCOUNT_ID="rainbowbridge.sputnik-dao.near"
2
+
3
+read -p "Enter proposal Id: " proposal_id
4
5
+near contract call-function as-read-only $DAO_ACCOUNT_ID get_proposal json-args "{\"id\": $proposal_id}" network-config mainnet now
6
7
+read -p "Type 'approve' to approve the proposal: " approve
8
9
+if [ "$approve" = "approve" ]; then
10
+ near contract call-function as-transaction $DAO_ACCOUNT_ID act_proposal json-args "{\"id\": ${proposal_id}, \"action\": \"VoteApprove\"}" prepaid-gas '300 TeraGas' attached-deposit '0 NEAR' sign-as $SIGNER_ACCOUNT_ID network-config mainnet sign-with-ledger send
11
+fi
12
0 commit comments