cardano-php/bech32

Minor: The `encode` method does not handle empty data arrays explicitly

Open

#4 opened on Jan 2, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)PHP (0 forks)auto 404
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

Contributor guide