fix id parsing

This commit is contained in:
Branden J Brown 2025-03-15 08:05:00 -04:00
parent 5d5155d8d8
commit 4a69e64654

View File

@ -57,6 +57,6 @@ func ParseID(s string) (ID, error) {
return ID{}, errors.New("invalid ID")
}
var id ID
_, err := hex.AppendDecode(id[:], []byte(s))
_, err := hex.AppendDecode(id[:0], []byte(s))
return id, err
}