diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-03-12 17:52:58 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-03-16 14:29:06 +0300 |
commit | 19fcc74912b48791665ea0e81c9ded91180ab6c5 (patch) | |
tree | 661894a61e8673d5fd76cb6e9f5a960e021ac186 /src/wallet/wallet2_api.cpp | |
parent | WalletManager::recoveryWallet implemented (diff) | |
download | monero-19fcc74912b48791665ea0e81c9ded91180ab6c5.tar.xz |
Wallet::address implemented
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.cpp b/src/wallet/wallet2_api.cpp index 645bc9c46..6428e7b32 100644 --- a/src/wallet/wallet2_api.cpp +++ b/src/wallet/wallet2_api.cpp @@ -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; |