mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-05 02:12:14 +00:00
Check if address is parsed then create the transaction with the parsed address not the entered address (#585)
This commit is contained in:
parent
b182c26ff2
commit
65dfb83a27
1 changed files with 3 additions and 1 deletions
|
@ -187,7 +187,9 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
|
||||||
accountIndex: walletAddresses.account!.id);
|
accountIndex: walletAddresses.account!.id);
|
||||||
} else {
|
} else {
|
||||||
final output = outputs.first;
|
final output = outputs.first;
|
||||||
final address = output.address;
|
final address = output.isParsedAddress && (output.extractedAddress?.isNotEmpty ?? false)
|
||||||
|
? output.extractedAddress!
|
||||||
|
: output.address;
|
||||||
final amount = output.sendAll
|
final amount = output.sendAll
|
||||||
? null
|
? null
|
||||||
: output.cryptoAmount!.replaceAll(',', '.');
|
: output.cryptoAmount!.replaceAll(',', '.');
|
||||||
|
|
Loading…
Reference in a new issue