Skip to content

Commit

Permalink
Merge pull request #15 from moonstream-to/fix-single-sign
Browse files Browse the repository at this point in the history
Fix single sign
  • Loading branch information
kompotkot authored Aug 24, 2023
2 parents 40e6a4f + 74290d2 commit f65757d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1

0 comments on commit f65757d

Please sign in to comment.