Revert "add polyseed language options"

This reverts commit a032a20221.
This commit is contained in:
Czarek Nakamoto
2024-04-11 17:15:42 +02:00
parent a032a20221
commit b003970d7f
4 changed files with 6 additions and 6 deletions

View File

@@ -1089,10 +1089,10 @@ const char* WOWNERO_Wallet_getPolyseed(void* wallet_ptr, const char* passphrase)
return buffer;
}
// static bool createPolyseed(std::string &seed_words, std::string &err, const std::string &language = "English");
const char* WOWNERO_Wallet_createPolyseed(const char* language) {
const char* WOWNERO_Wallet_createPolyseed() {
std::string seed_words = "";
std::string err;
Monero::Wallet::createPolyseed(seed_words, err, std::string(language));
Monero::Wallet::createPolyseed(seed_words, err);
std::string str = seed_words;
const std::string::size_type size = str.size();
char *buffer = new char[size + 1]; //we need extra char for NUL

View File

@@ -645,7 +645,7 @@ extern ADDAPI void WOWNERO_Wallet_init3(void* wallet_ptr, const char* argv0, con
// virtual bool getPolyseed(std::string &seed, std::string &passphrase) const = 0;
extern ADDAPI const char* WOWNERO_Wallet_getPolyseed(void* wallet_ptr, const char* passphrase);
// static bool createPolyseed(std::string &seed_words, std::string &err, const std::string &language = "English");
extern ADDAPI const char* WOWNERO_Wallet_createPolyseed(const char* language);
extern ADDAPI const char* WOWNERO_Wallet_createPolyseed();
extern ADDAPI void WOWNERO_Wallet_startRefresh(void* wallet_ptr);
// virtual void pauseRefresh() = 0;
extern ADDAPI void WOWNERO_Wallet_pauseRefresh(void* wallet_ptr);