Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: Rename AccAddressFromHex #11888

Merged
merged 9 commits into from
May 6, 2022
Prev Previous commit
Next Next commit
Update types/address.go
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
  • Loading branch information
alexanderbez and webmaster128 authored May 6, 2022
commit 2600e5ff46cec4f388a8c0bd83036a55f9651c96
2 changes: 1 addition & 1 deletion types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func GetFromBech32(bech32str, prefix string) ([]byte, error) {

func addressBytesFromHexString(address string) ([]byte, error) {
if len(address) == 0 {
return nil, errors.New("decoding Bech32 address from hex string failed: empty address")
return nil, errors.New("decoding address from hex string failed: empty address")
}

return hex.DecodeString(address)
Expand Down