From 245f584fb1f95b54d319d510f452188d6824766a Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 3 Mar 2022 17:49:59 -0300
Subject: use new segwit impl

---
 packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx
index 08326f828..66e9cd21e 100644
--- a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx
@@ -2,9 +2,9 @@ import {
   AmountJson,
   parsePaytoUri,
   i18n,
-  generateSegwitAddress,
   Amounts,
   segwitMinAmount,
+  generateFakeSegwitAddress,
 } from "@gnu-taler/taler-util";
 import { Fragment, h, VNode } from "preact";
 import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType";
@@ -40,7 +40,10 @@ export function ReserveCreated({
   function TransferDetails(): VNode {
     if (!paytoURI) return <Fragment />;
     if (paytoURI.targetType === "bitcoin") {
-      const { segwitAddr1, segwitAddr2 } = generateSegwitAddress(reservePub);
+      const { segwitAddr1, segwitAddr2 } = generateFakeSegwitAddress(
+        reservePub,
+        paytoURI.targetPath,
+      );
       const min = segwitMinAmount();
       return (
         <section>
-- 
cgit v1.2.3

