Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Jul 9, 2024
1 parent 313a85a commit 66d5f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func StripFromString(input, substring string) string {
}

// Converts a '0x'-prefixed hex string or cb58-encoded string to an ID.
// Input length validation is handled by the ids package.
func HexOrCB58ToID(s string) (ids.ID, error) {
if strings.HasPrefix(s, "0x") {
bytes, err := hex.DecodeString(SanitizeHexString(s))
Expand Down

0 comments on commit 66d5f1d

Please sign in to comment.