diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-20 15:26:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-20 15:26:35 -0300 |
commit | 8e29f91a56af962404c9a30868d6c3a21997ba57 (patch) | |
tree | 158023db34861c79c934c015d537e78a9277bd7e | |
parent | 0cb4e4498db5d87e0bc89062204b746992b22279 (diff) |
adopt new payto bitcoin struct
-rw-r--r-- | packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx | 22 |
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 '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{" "} |