Skip to content

Commit 7d7f55f

Browse files
committed
Use Txid instead of uint256
bitcoin/bitcoin#32238
1 parent c2ac37d commit 7d7f55f

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
@@ -76,7 +76,7 @@ interfaces::WalletTx WalletQmlModel::getWalletTx(const uint256& hash) const
7676
if (!m_wallet) {
7777
return {};
7878
}
79-
return m_wallet->getWalletTx(hash);
79+
return m_wallet->getWalletTx(Txid::FromUint256(hash));
8080
}
8181

8282
bool WalletQmlModel::tryGetTxStatus(const uint256& txid,
@@ -87,7 +87,7 @@ bool WalletQmlModel::tryGetTxStatus(const uint256& txid,
8787
if (!m_wallet) {
8888
return false;
8989
}
90-
return m_wallet->tryGetTxStatus(txid, tx_status, num_blocks, block_time);
90+
return m_wallet->tryGetTxStatus(Txid::FromUint256(txid), tx_status, num_blocks, block_time);
9191
}
9292

9393
std::unique_ptr<interfaces::Handler> WalletQmlModel::handleTransactionChanged(TransactionChangedFn fn)

0 commit comments

Comments
 (0)