From 2972b1243fd3c4060de9faf8cfeeba2d23d06358 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Thu, 24 Aug 2023 16:59:44 +0000 Subject: [PATCH 1/2] Fix single dropper sign --- cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd.go b/cmd.go index 643fce0..67f1efd 100644 --- a/cmd.go +++ b/cmd.go @@ -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.") @@ -208,7 +208,7 @@ func CreateSignCommand() *cobra.Command { return hashErr } - if header { + if hashFlag { cmd.Println(hex.EncodeToString(messageHash)) return nil } @@ -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", From 74290d278ceddcd70834819160536f744a5aa54d Mon Sep 17 00:00:00 2001 From: kompotkot Date: Thu, 24 Aug 2023 17:00:27 +0000 Subject: [PATCH 2/2] Bumped version --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 6c6aa7c..17e51c3 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.1.0 \ No newline at end of file +0.1.1