A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser
1.19k
stars
507
forks
source link
fix: throw error if `hexToBytes` or `hexToString` is provided a string that is not in hex #2657
Closed
mvadari closed 2 months ago
High Level Overview of Change
Title says it all.
Context of Change
The current methods return an empty bytes object/string if they are not provided a string in hex, which caused an issue.
Type of Change
Did you update
HISTORY.md
?I also cleaned up the other
HISTORY.md
files.Test Plan
Added tests, they pass.