This PR rectifies a linguistic inconsistency found in merged PR 27727. It addresses the improper usage of the term ‘byte’ in error reports. As it stands, PR 27727 exclusively utilizes ‘byte’ in error messages, regardless of the context, as demonstrated below:
Currently: Invalid Bech32 v0 address program size (16 byte), per BIP141
This modification enhances the accuracy of error reporting in most scenarios users are likely to encounter by checking for a plural or singular number of bytes.
This PR
16 Bytes program size error :
0(
1 "BC1QR508D6QEJXTDG4Y5R3ZARVARYV98GJ9P",
2 "Invalid Bech32 v0 address program size (16 bytes), per BIP141",
3 [],
4)
1 Byte program size error
0(
1 "bc1pw5dgrnzv",
2 "Invalid Bech32 address program size (1 byte)",
3 []
4),
Thank you