Fixed error preventing build of monero-gui

get_attribute expects 2 values instead of 1
This commit is contained in:
Nejcraft 2019-07-28 16:03:45 +02:00 committed by GitHub
parent 8adde33e01
commit 6da3561e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1705,7 +1705,9 @@ bool WalletImpl::setCacheAttribute(const std::string &key, const std::string &va
std::string WalletImpl::getCacheAttribute(const std::string &key) const std::string WalletImpl::getCacheAttribute(const std::string &key) const
{ {
return m_wallet->get_attribute(key); std::string value;
m_wallet->get_attribute(key, value);
return value;
} }
bool WalletImpl::setUserNote(const std::string &txid, const std::string &note) bool WalletImpl::setUserNote(const std::string &txid, const std::string &note)