diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-20 13:25:13 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-20 13:25:13 -0300 |
commit | 37ce3972f9bc37c0b96ed78814dc99303b202859 (patch) | |
tree | 62ea2a98e4600e754325ce20be65e2b326aadd8d /packages/taler-wallet-webextension | |
parent | b90a4a66dcb1a7a037a6dafee6d10a63fbacf345 (diff) |
refactor payto and test
Diffstat (limited to 'packages/taler-wallet-webextension')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx | 4 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx index ac6f8541e..b20fc2d59 100644 --- a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx +++ b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx @@ -45,10 +45,6 @@ export function BankDetailsByPaytoType({ if (payto.isKnown && payto.targetType === "bitcoin") { const min = segwitMinAmount(amount.currency); - if (typeof window !== "undefined") { - //FIXME: generate (and possibly save in db?) in wallet-core - payto.generateSegwitAddress(subject); - } return ( <section style={{ textAlign: "left" }}> <p> diff --git a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx index a8c6b3c1a..8b8d375de 100644 --- a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx @@ -66,9 +66,6 @@ export function ManualWithdrawPage({ currency, onCancel }: Props): VNode { ); const payto = response.exchangePaytoUris[0]; const paytoURI = parsePaytoUri(payto); - if (paytoURI && paytoURI.isKnown && paytoURI.targetType === "bitcoin") { - paytoURI.generateSegwitAddress(response.reservePub); - } setSuccess({ exchangeBaseUrl, response, amount, paytoURI, payto }); } catch (e) { if (e instanceof Error) { |