cardano-php/bech32
View on GitHubMinor: The `encode` method does not handle empty data arrays explicitly
Open
#4 opened on Jan 2, 2025
good first issue
Repository metrics
- Stars
- (2 stars)
- PR merge metrics
- (PR metrics pending)
Description
Minor: The encode method does not handle empty data arrays explicitly. While the current tests do not cover this, it should be ensured that encoding with an empty data array results in a valid Bech32 string with only the HRP and separator.
Originally posted by @latheesan-k in https://github.com/cardano-php/bech32/pull/1#discussion_r1901181949