fix nano being sent to only the first output address in list (#1198)

This commit is contained in:
Matthew Fosse 2023-11-27 13:44:48 -05:00 committed by GitHub
parent 615d016dd5
commit 177d89b904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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