As a registered dRep but without a registered stake key, when attempting to delegate to a registered dRep, the command throws the error ERROR: Drep is not registered: drep1qq7nfxslmcrql4umyyp2p2sgsjadjv8ql5zfukex5ez7uk9n3x5 instead of the expected error message Your stake key is not registered.
Steps to Reproduce:
Generate a wallet, dRep, and stake key.
Load the wallet with funds.
Register the dRep.
Attempt to delegate to the registered dRep using the following command:
There appears to be an incorrect condition in the code at this line, which causes the gov-cli to display an incorrect error message when the stake key is not registered. Instead of reporting that the Your stake key is not registered, the CLI incorrectly reports that the DRep is not registered.
Context
ERROR: Drep is not registered: drep1qq7nfxslmcrql4umyyp2p2sgsjadjv8ql5zfukex5ez7uk9n3x5
instead of the expected error messageYour stake key is not registered
.Steps to Reproduce:
CLI Logs:
Issue:
There appears to be an incorrect condition in the code at this line, which causes the
gov-cli
to display an incorrect error message when the stake key is not registered. Instead of reporting that theYour stake key is not registered
, the CLI incorrectly reports that theDRep is not registered
.