aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-04-20 15:26:35 -0300
committerSebastian <sebasjm@gmail.com>2022-04-20 15:26:35 -0300
commit8e29f91a56af962404c9a30868d6c3a21997ba57 (patch)
tree158023db34861c79c934c015d537e78a9277bd7e
parent0cb4e4498db5d87e0bc89062204b746992b22279 (diff)
adopt new payto bitcoin struct
-rw-r--r--packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx22
1 files changed, 10 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
index b20fc2d59..185021bc0 100644
--- a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
+++ b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
@@ -63,12 +63,11 @@ export function BankDetailsByPaytoType({
<li>
{payto.targetPath} {Amounts.stringifyValue(amount)} BTC
</li>
- <li>
- {payto.addr1} {Amounts.stringifyValue(min)} BTC
- </li>
- <li>
- {payto.addr2} {Amounts.stringifyValue(min)} BTC
- </li>
+ {payto.segwitAddrs.map((addr, i) => (
+ <li key={i}>
+ {addr} {Amounts.stringifyValue(min)} BTC
+ </li>
+ ))}
</ul>
<i18n.Translate>
In Electrum wallet paste the following three lines in &apos;Pay
@@ -78,12 +77,11 @@ export function BankDetailsByPaytoType({
<li>
{payto.targetPath},{Amounts.stringifyValue(amount)}
</li>
- <li>
- {payto.addr1},{Amounts.stringifyValue(min)}
- </li>
- <li>
- {payto.addr2},{Amounts.stringifyValue(min)}
- </li>
+ {payto.segwitAddrs.map((addr, i) => (
+ <li key={i}>
+ {addr} {Amounts.stringifyValue(min)} BTC
+ </li>
+ ))}
</ul>
<i18n.Translate>
Make sure the amount show{" "}