fix nano exchange

This commit is contained in:
fosse 2023-10-10 13:07:19 -04:00
parent 95e7ee1cbb
commit 9fad4e114f
2 changed files with 4 additions and 2 deletions

View file

@ -182,7 +182,9 @@ abstract class NanoWalletBase
final block = await _client.constructSendBlock(
amountRaw: amt.toString(),
destinationAddress: txOut.extractedAddress ?? txOut.address,
destinationAddress: credentials.outputs.first.isParsedAddress
? credentials.outputs.first.extractedAddress!
: credentials.outputs.first.address,
privateKey: _privateKey!,
balanceAfterTx: runningBalance,
previousHash: previousHash,

View file

@ -96,7 +96,7 @@ abstract class ExchangeTradeViewModelBase with Store {
Timer? timer;
@action
Future confirmSending() async {
Future<void> confirmSending() async {
if (!isSendable) {
return;
}