forked from Kieran/snort
Bug fix
This commit is contained in:
parent
ee65dd73ab
commit
825cfd2a6f
@ -59,7 +59,7 @@ export function eventLink(hex) {
|
|||||||
*/
|
*/
|
||||||
export function hexToBech32(hrp, hex) {
|
export function hexToBech32(hrp, hex) {
|
||||||
if (typeof hex !== "string" || hex.length === 0 || hex.length % 2 != 0) {
|
if (typeof hex !== "string" || hex.length === 0 || hex.length % 2 != 0) {
|
||||||
return null;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
let buf = secp.utils.hexToBytes(hex);
|
let buf = secp.utils.hexToBytes(hex);
|
||||||
|
Loading…
Reference in New Issue
Block a user