Check if address is parsed then create the transaction with the parsed address not the entered address (#585)

This commit is contained in:
Omar Hatem 2022-11-02 19:11:07 +02:00 committed by GitHub
parent b182c26ff2
commit 65dfb83a27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,9 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
accountIndex: walletAddresses.account!.id);
} else {
final output = outputs.first;
final address = output.address;
final address = output.isParsedAddress && (output.extractedAddress?.isNotEmpty ?? false)
? output.extractedAddress!
: output.address;
final amount = output.sendAll
? null
: output.cryptoAmount!.replaceAll(',', '.');