Skip to content

Commit 58f8d5a

Browse files
committed
CRecipient now takes CTxDestination not CScript
bitcoin/bitcoin#28246
1 parent 7d7f55f commit 58f8d5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qml/models/walletqmlmodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ bool WalletQmlModel::prepareTransaction()
107107
std::vector<wallet::CRecipient> vecSend;
108108
CAmount total = 0;
109109
for (auto* recipient : m_send_recipients->recipients()) {
110-
CScript scriptPubKey = GetScriptForDestination(DecodeDestination(recipient->address().toStdString()));
111-
wallet::CRecipient c_recipient = {scriptPubKey, recipient->cAmount(), recipient->subtractFeeFromAmount()};
110+
CTxDestination destination = DecodeDestination(recipient->address().toStdString());
111+
wallet::CRecipient c_recipient = {destination, recipient->cAmount(), recipient->subtractFeeFromAmount()};
112112
m_coin_control.m_feerate = CFeeRate(1000);
113113
vecSend.push_back(c_recipient);
114114
total += recipient->cAmount();

0 commit comments

Comments
 (0)