-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Context
- When a stake key is registered but the corresponding dRep is not, attempting to vote on a proposal should result in an error indicating that the
DRep is not registered. However, the transaction is being submitted successfully without any errors.
Steps to Reproduce:
- Generate a wallet, dRep, and stake key.
- Load the wallet with funds.
- Register the stake.
- Attempt to vote on any governance action using:
gov-cli vote drep 0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68#0 no
CLI Logs:
> cardano-cli conway governance vote create --no --governance-action-tx-id 0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68 --governance-action-index 0 --drep-verification-key-file /home/niraj/.cardano/keys/drep.vkey --out-file /home/niraj/.cardano/keys/vote_no_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0.vote
> cardano-cli query utxo --address addr_test1qphpculkrcxx4snfnunuyf492zq7l0jud2xvdlam2qankjtxde5w7y3lsphakqszjl3y859pudwqdvxdrdfv6zlgrwws483ufm --out-file /home/niraj/.cardano/keys/utxo.json --socket-path /home/niraj/.cardano/sancho/node.socket --testnet-magic=4
> cardano-cli conway transaction build --vote-file /home/niraj/.cardano/keys/vote_no_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0.vote --witness-override 2 --tx-in f14a97c43e78f6aadab84bec9ff1ae4296a86d4f18afbc6824b007855c3f2c5f#0 --out-file /home/niraj/.cardano/keys/vote_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0_tx.raw --change-address addr_test1qphpculkrcxx4snfnunuyf492zq7l0jud2xvdlam2qankjtxde5w7y3lsphakqszjl3y859pudwqdvxdrdfv6zlgrwws483ufm --socket-path /home/niraj/.cardano/sancho/node.socket --testnet-magic=4
> cardano-cli conway transaction sign --tx-body-file /home/niraj/.cardano/keys/vote_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0_tx.raw --signing-key-file /home/niraj/.cardano/keys/payment.skey --out-file /home/niraj/.cardano/keys/vote_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0_signed_tx.json --signing-key-file=/home/niraj/.cardano/keys/drep.skey
> cardano-cli conway transaction submit --tx-file /home/niraj/.cardano/keys/vote_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0_signed_tx.json --socket-path /home/niraj/.cardano/sancho/node.socket --testnet-magic=4
> cardano-cli transaction txid --tx-file /home/niraj/.cardano/keys/vote_0bbbe7f2dbe3401062be5cef6a0da6135bf9838e131eeee17148216f18865b68_0_tx.rawIssue:
The CLI fails to detect that the dRep is not registered and incorrectly submits the transaction.
Metadata
Metadata
Assignees
Labels
No labels