diff --git a/cw_nano/lib/nano_wallet.dart b/cw_nano/lib/nano_wallet.dart index 795634849..b0d98efec 100644 --- a/cw_nano/lib/nano_wallet.dart +++ b/cw_nano/lib/nano_wallet.dart @@ -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,