From 3a4d878c32c7cb7d6f3209798f88a57f5084f69a Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 23 Nov 2022 12:42:07 +0100 Subject: [PATCH] support hex addresses --- src/neo4j/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neo4j/utils.ts b/src/neo4j/utils.ts index c69576d7..f4aa0aad 100644 --- a/src/neo4j/utils.ts +++ b/src/neo4j/utils.ts @@ -62,6 +62,8 @@ export const getAddressesByType = (addresses: string[]) => { addrKeyHashes.push(Buffer.from(keyHash.to_bytes()).toString("hex")); } } + } else if (/^[0-8]/.test(address)) { + bech32OrBase58Addresses.push(wasmAddr.to_bech32()); } wasmAddr.free(); continue;