This commit is contained in:
Kieran 2023-01-10 11:41:57 +00:00
parent ee65dd73ab
commit 825cfd2a6f
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -59,7 +59,7 @@ export function eventLink(hex) {
*/
export function hexToBech32(hrp, hex) {
if (typeof hex !== "string" || hex.length === 0 || hex.length % 2 != 0) {
return null;
return "";
}
let buf = secp.utils.hexToBytes(hex);