mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 15:51:34 +02:00
implement getLanguages()
This commit is contained in:
@@ -517,6 +517,12 @@ namespace monero {
|
||||
return wallet2->get_seed_language();
|
||||
}
|
||||
|
||||
vector<string> MoneroWallet::getLanguages() const {
|
||||
vector<string> languages;
|
||||
crypto::ElectrumWords::get_language_list(languages, true);
|
||||
return languages;
|
||||
}
|
||||
|
||||
// get primary address (default impl?)
|
||||
|
||||
string MoneroWallet::getAddress(uint32_t accountIdx, uint32_t subaddressIdx) const {
|
||||
|
||||
@@ -213,12 +213,12 @@ namespace monero {
|
||||
*/
|
||||
string getLanguage() const;
|
||||
|
||||
// /**
|
||||
// * Get a list of available languages for the wallet's seed.
|
||||
// *
|
||||
// * @return the available languages for the wallet's seed
|
||||
// */
|
||||
// virtual string[] getLanguages() const;
|
||||
/**
|
||||
* Get a list of available languages for the wallet's seed.
|
||||
*
|
||||
* @return the available languages for the wallet's seed
|
||||
*/
|
||||
vector<string> getLanguages() const;
|
||||
|
||||
/**
|
||||
* Get the wallet's primary address.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
wallet2 does not automatically save unlike rpc; where to invoke save and how to separate for tests?
|
||||
throw MoneroErrors instead of runtime_errors
|
||||
toPropertyTree() should take node as parameter; optimize memory elsewhere
|
||||
cannot reconcile integrals on getTransfers() test, need to add reconcile debug info including vals and pass error message
|
||||
|
||||
Reference in New Issue
Block a user