CAKE-359 | added text field for extracted (from Yat, Unstoppable Domains, OpenAlias) address to send_card.dart; added extractedAddress and isParsedAddress parameters to output.dart; applied extractedAddress to monero_wallet.dart and electrum_wallet.dart; added TextValidator to send_view_model.dart

This commit is contained in:
OleksandrSobol
2021-09-22 16:47:10 +03:00
parent 9958f6c2e0
commit 3b649ef682
7 changed files with 116 additions and 69 deletions
+5 -1
View File
@@ -280,8 +280,12 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
? item.formattedCryptoAmount
: amount;
final outputAddress = item.isParsedAddress
? item.extractedAddress
: item.address;
txb.addOutput(
addressToOutputScript(item.address, networkType),
addressToOutputScript(outputAddress, networkType),
outputAmount);
});