Closed cedoor closed 8 months ago
Describe the bug
hexadecimalToBuffer does not convert hexadecimal strings correctly if they contain an odd number of characters.
hexadecimalToBuffer
To Reproduce
console.log(hexadecimalToBuffer("0")) // <Buffer > console.log(hexadecimalToBuffer("1")) // <Buffer >
Expected behavior
hexadecimalToBuffer should add a "0" if the number of characters is odd.
Describe the bug
hexadecimalToBuffer
does not convert hexadecimal strings correctly if they contain an odd number of characters.To Reproduce
Expected behavior
hexadecimalToBuffer
should add a "0" if the number of characters is odd.