forked from cerc-io/laconicd-deprecated
@@ -27,17 +27,17 @@ func GetTxCmd(cdc *codec.Codec) *cobra.Command {
|
||||
}
|
||||
|
||||
faucetTxCmd.AddCommand(flags.PostCommands(
|
||||
GetCmdFund(cdc),
|
||||
GetCmdRequest(cdc),
|
||||
)...)
|
||||
|
||||
return faucetTxCmd
|
||||
}
|
||||
|
||||
// GetCmdFund is the CLI command to fund an address with the requested coins
|
||||
func GetCmdFund(cdc *codec.Codec) *cobra.Command {
|
||||
// GetCmdRequest is the CLI command to fund an address with the requested coins
|
||||
func GetCmdRequest(cdc *codec.Codec) *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "fund [amount] [other-recipient (optional)]",
|
||||
Short: "fund an address with the requested coins",
|
||||
Use: "request [amount] [other-recipient (optional)]",
|
||||
Short: "request an address with the requested coins",
|
||||
Args: cobra.RangeArgs(1, 2),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
inBuf := bufio.NewReader(cmd.InOrStdin())
|
||||
|
||||
Reference in New Issue
Block a user