Skip to content

Commit

Permalink
support hex addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromtcosta committed Nov 23, 2022
1 parent 2988abf commit 3a4d878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/neo4j/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a4d878

Please sign in to comment.