Skip to content

Commit

Permalink
test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon committed Dec 9, 2023
1 parent 9ba79fa commit e520456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codec/address/bech32_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func NewBech32Codec(prefix string) address.Codec {
// StringToBytes encodes text to bytes
func (bc Bech32Codec) StringToBytes(text string) ([]byte, error) {
if len(strings.TrimSpace(text)) == 0 {
panic(errors.New("1 empty address string is not allowed"))
return []byte{}, errors.New("1 empty address string is not allowed")
}

Expand Down

0 comments on commit e520456

Please sign in to comment.