-Subproject commit ed9996693aaa2c23206e43ca13b532aebc2cc2e7
+Subproject commit 566e6e1904f20d7537c8f4c7f50caf1a5ee86bf8
tx->refresh();
QSet<QString> outputAddresses;
for (const auto &output : tx->transaction(0)->outputs()) {
- outputAddresses.insert(output->address());
+ outputAddresses.insert(WalletManager::baseAddressFromIntegratedAddress(output->address(), constants::networkType));
}
QSet<QString> destAddresses;
for (const auto &addr : address) {
- destAddresses.insert(addr);
+ // TODO: Monero core bug, integrated address is not added to dests for transactions spending ALL
+ destAddresses.insert(WalletManager::baseAddressFromIntegratedAddress(addr, constants::networkType));
}
if (!outputAddresses.contains(destAddresses)) {
err = QString("%1 %2").arg(err, "Constructed transaction doesn't appear to send to (all) specified destination address(es). Try creating the transaction again.");
return QString::fromStdString(Monero::Wallet::paymentIdFromAddress(address.toStdString(), static_cast<Monero::NetworkType>(nettype)));
}
+QString WalletManager::baseAddressFromIntegratedAddress(const QString &address, NetworkType::Type nettype)
+{
+ return QString::fromStdString(Monero::Wallet::baseAddressFromIntegratedAddress(address.toStdString(), static_cast<Monero::NetworkType>(nettype))) ;
+}
+
bool WalletManager::isDaemonLocal(const QString &daemon_address) const
{
return daemon_address.isEmpty() ? false : Monero::Utils::isAddressLocal(daemon_address.toStdString());
static bool keyValid(const QString &key, const QString &address, bool isViewKey, NetworkType::Type nettype);
QString paymentIdFromAddress(const QString &address, NetworkType::Type nettype) const;
+ static QString baseAddressFromIntegratedAddress(const QString &address, NetworkType::Type nettype);
bool isDaemonLocal(const QString &daemon_address) const;