Skip to content

Commit

Permalink
Fix single dropper sign
Browse files Browse the repository at this point in the history
  • Loading branch information
kompotkot committed Aug 24, 2023
1 parent 40e6a4f commit 2972b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func CreateSignCommand() *cobra.Command {
var chainId int64
var batchSize int
var bugoutToken, cursorName, journalID, keyfile, password, claimant, dropperAddress, dropId, requestId, blockDeadline, amount, infile, outfile, query string
var sensible, header, isCSV bool
var sensible, hashFlag, isCSV, header bool

signCommand.PersistentFlags().StringVarP(&keyfile, "keystore", "k", "", "Path to keystore file (this should be a JSON file).")
signCommand.PersistentFlags().StringVarP(&password, "password", "p", "", "Password for keystore file. If not provided, you will be prompted for it when you sign with the key.")
Expand Down Expand Up @@ -208,7 +208,7 @@ func CreateSignCommand() *cobra.Command {
return hashErr
}

if header {
if hashFlag {
cmd.Println(hex.EncodeToString(messageHash))
return nil
}
Expand Down Expand Up @@ -247,7 +247,7 @@ func CreateSignCommand() *cobra.Command {
dropperSingleSubcommand.Flags().StringVar(&claimant, "claimant", "", "Address of the intended claimant.")
dropperSingleSubcommand.Flags().StringVar(&blockDeadline, "block-deadline", "0", "Block number by which the claim must be made.")
dropperSingleSubcommand.Flags().StringVar(&amount, "amount", "0", "Amount of tokens to distribute.")
dropperSingleSubcommand.Flags().BoolVar(&header, "hash", false, "Output the message hash instead of the signature.")
dropperSingleSubcommand.Flags().BoolVar(&hashFlag, "hash", false, "Output the message hash instead of the signature.")

dropperBatchSubcommand := &cobra.Command{
Use: "batch",
Expand Down

0 comments on commit 2972b12

Please sign in to comment.