diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-04 12:20:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-04 12:22:06 -0300 |
commit | 241a37c889d132423676b95af18f9349d0501298 (patch) | |
tree | ad1b7365aae4251d3c275b27808bb9b975cdb325 /packages/taler-util/src/bitcoin.ts | |
parent | 1c3e9473fd81761d01fafce1ddce8f3f80d35385 (diff) | |
download | wallet-core-241a37c889d132423676b95af18f9349d0501298.tar.xz |
add payto type
Diffstat (limited to 'packages/taler-util/src/bitcoin.ts')
-rw-r--r-- | packages/taler-util/src/bitcoin.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-util/src/bitcoin.ts b/packages/taler-util/src/bitcoin.ts index 8c22ba522..37b7ae6b9 100644 --- a/packages/taler-util/src/bitcoin.ts +++ b/packages/taler-util/src/bitcoin.ts @@ -69,10 +69,10 @@ export function generateFakeSegwitAddress( addr[0] === "t" && addr[1] == "b" ? "tb" : addr[0] === "b" && addr[1] == "c" && addr[2] === "r" && addr[3] == "t" - ? "bcrt" - : addr[0] === "b" && addr[1] == "c" - ? "bc" - : undefined; + ? "bcrt" + : addr[0] === "b" && addr[1] == "c" + ? "bc" + : undefined; if (prefix === undefined) throw new Error("unknown bitcoin net"); const addr1 = segwit.default.encode(prefix, 0, first_part); |