mirror of
https://github.com/monero-project/monero.git
synced 2025-12-23 07:29:11 -08:00
Wallet::address implemented
This commit is contained in:
@@ -68,6 +68,7 @@ public:
|
||||
int status() const;
|
||||
std::string errorString() const;
|
||||
bool setPassword(const std::string &password);
|
||||
std::string address() const;
|
||||
|
||||
private:
|
||||
void clearStatus();
|
||||
@@ -233,6 +234,11 @@ bool WalletImpl::setPassword(const std::string &password)
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string WalletImpl::address() const
|
||||
{
|
||||
return m_wallet->get_account().get_public_address_str(m_wallet->testnet());
|
||||
}
|
||||
|
||||
void WalletImpl::clearStatus()
|
||||
{
|
||||
m_status = Status_Ok;
|
||||
|
||||
Reference in New Issue
Block a user