cardanoapi / gov-cli

Command line utility to work with Cardano governance
https://pypi.org/project/gov-cli/
2 stars 1 forks source link

[TYPO] Gov CLI Not Working on Network 'sancho' #3

Open kneerose opened 1 month ago

kneerose commented 1 month ago

Steps to Reproduce:

  1. Run the following command:
    export NETWORK=sancho
  2. Execute:
    gov-cli gen

CLI Logs:

> cardano-cli address key-gen --verification-key-file /home/niraj/.cardano/keys/payment.vkey --signing-key-file /home/niraj/.cardano/keys/payment.skey
> cardano-cli stake-address key-gen --verification-key-file /home/niraj/.cardano/keys/stake.vkey --signing-key-file /home/niraj/.cardano/keys/stake.skey
> cardano-cli address build --payment-verification-key-file /home/niraj/.cardano/keys/payment.vkey --stake-verification-key-file /home/niraj/.cardano/keys/stake.vkey --out-file /home/niraj/.cardano/keys/payment.addr sancho

Invalid argument `sancho'

Usage: cardano-cli address build 
                                   ( --payment-verification-key STRING
                                   | --payment-verification-key-file FILE
                                   | --payment-script-file FILE
                                   )
                                   [ --stake-verification-key STRING
                                   | --stake-verification-key-file FILE
                                   | --stake-key-hash HASH
                                   | --stake-script-file FILE
                                   | --stake-address ADDRESS
                                   ]
                                   (--mainnet | --testnet-magic NATURAL)
                                   [--out-file FILE]

  Build a Shelley payment address, with optional delegation to a stake address.

Issue:

There seems to be a typo in the code at this line causing the gov-cli to incorrectly pass the sancho network argument.

mesudip commented 1 month ago

Fixed in latest change