From a1da8d4c4cda2a556e695dc35a02e45f48d99f27 Mon Sep 17 00:00:00 2001 From: Cameron Cooper Date: Tue, 24 Sep 2024 14:40:36 -0500 Subject: [PATCH] fix encode decode descriptions --- internal/cmd/coinset/address_decode.go | 4 ++-- internal/cmd/coinset/address_encode.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cmd/coinset/address_decode.go b/internal/cmd/coinset/address_decode.go index 6c49106..6e3c707 100644 --- a/internal/cmd/coinset/address_decode.go +++ b/internal/cmd/coinset/address_decode.go @@ -27,8 +27,8 @@ var addressDecodeCmd = &cobra.Command{ } return fmt.Errorf("invalid address value specified: %s", args[0]) }, - Short: "Decode puzzle hash to address", - Long: `Decode puzzle hash to address`, + Short: "Decode address to puzzle hash", + Long: `Decode address to puzzle hash`, Run: func(cmd *cobra.Command, args []string) { _, puzzleHashBytes, err := bech32m.DecodePuzzleHash(args[0]) if err != nil { diff --git a/internal/cmd/coinset/address_encode.go b/internal/cmd/coinset/address_encode.go index 7a5ce2a..89e250f 100644 --- a/internal/cmd/coinset/address_encode.go +++ b/internal/cmd/coinset/address_encode.go @@ -24,8 +24,8 @@ var addressEncodeCmd = &cobra.Command{ } return fmt.Errorf("invalid hex value specified: %s", args[0]) }, - Short: "Encode address to puzzle hash", - Long: `Encode address to puzzle hash`, + Short: "Encode puzzle hash to address", + Long: `Encode puzzle hash to address`, Run: func(cmd *cobra.Command, args []string) { prefix := "xch" if testnet {