Wallet::address implemented

This commit is contained in:
Ilya Kitaev
2016-03-12 17:52:58 +03:00
parent 180ac6e438
commit 19fcc74912
3 changed files with 15 additions and 0 deletions

View File

@@ -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;