From 40e80311768e32e9888d92ba763e3a319322dde9 Mon Sep 17 00:00:00 2001 From: marbar3778 Date: Fri, 13 Oct 2023 13:24:51 +0200 Subject: [PATCH 1/2] fix comments --- types/bech32/bech32.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bech32/bech32.go b/types/bech32/bech32.go index 59bd8b9541df..bd38600469f7 100644 --- a/types/bech32/bech32.go +++ b/types/bech32/bech32.go @@ -16,7 +16,7 @@ func ConvertAndEncode(hrp string, data []byte) (string, error) { return bech32.Encode(hrp, converted) } -// DecodeAndConvert decodes a bech32 encoded string and converts to base64 encoded bytes. +// DecodeAndConvert decodes a bech32 encoded string and converts to base256 encoded bytes. func DecodeAndConvert(bech string) (string, []byte, error) { hrp, data, err := bech32.Decode(bech, 1023) if err != nil { From 2fd8ab2425230e3e8c950923ae84cd644fa77a71 Mon Sep 17 00:00:00 2001 From: marbar3778 Date: Fri, 13 Oct 2023 13:26:04 +0200 Subject: [PATCH 2/2] fix comment --- types/bech32/bech32.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bech32/bech32.go b/types/bech32/bech32.go index bd38600469f7..8356fa92d3e9 100644 --- a/types/bech32/bech32.go +++ b/types/bech32/bech32.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/btcutil/bech32" ) -// ConvertAndEncode converts from a base64 encoded byte string to base32 encoded byte string and then to bech32. +// ConvertAndEncode converts from a base256 encoded byte string to base32 encoded byte string and then to bech32. func ConvertAndEncode(hrp string, data []byte) (string, error) { converted, err := bech32.ConvertBits(data, 8, 5, true) if err != nil {