From 64bf4b54146a70ede1a63db67ee1e2ca2c14e8e7 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 7 Dec 2019 08:36:15 -0500 Subject: [PATCH] get_language() -> get_mnemonic_language() --- src/wallet/monero_wallet.h | 4 ++-- src/wallet/monero_wallet_core.cpp | 2 +- src/wallet/monero_wallet_core.h | 2 +- src/wallet/monero_wallet_keys.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wallet/monero_wallet.h b/src/wallet/monero_wallet.h index 51f2bd9..21ea4d1 100644 --- a/src/wallet/monero_wallet.h +++ b/src/wallet/monero_wallet.h @@ -235,8 +235,8 @@ namespace monero { * * @return the language of the wallet's mnemonic phrase */ - virtual string get_language() const { - throw runtime_error("get_language() not supported"); + virtual string get_mnemonic_language() const { + throw runtime_error("get_mnemonic_language() not supported"); } /** diff --git a/src/wallet/monero_wallet_core.cpp b/src/wallet/monero_wallet_core.cpp index a1615dc..c9bdaea 100644 --- a/src/wallet/monero_wallet_core.cpp +++ b/src/wallet/monero_wallet_core.cpp @@ -994,7 +994,7 @@ namespace monero { return static_cast(m_w2->nettype()); } - string monero_wallet_core::get_language() const { + string monero_wallet_core::get_mnemonic_language() const { return m_w2->get_seed_language(); } diff --git a/src/wallet/monero_wallet_core.h b/src/wallet/monero_wallet_core.h index 192f6fa..54416ef 100644 --- a/src/wallet/monero_wallet_core.h +++ b/src/wallet/monero_wallet_core.h @@ -159,7 +159,7 @@ namespace monero { string get_path() const; monero_network_type get_network_type() const; string get_mnemonic() const; - string get_language() const; + string get_mnemonic_language() const; vector get_languages() const; string get_public_view_key() const; string get_private_view_key() const; diff --git a/src/wallet/monero_wallet_keys.h b/src/wallet/monero_wallet_keys.h index b8eb8bc..d86426e 100644 --- a/src/wallet/monero_wallet_keys.h +++ b/src/wallet/monero_wallet_keys.h @@ -108,7 +108,7 @@ namespace monero { monero_version get_version() const; monero_network_type get_network_type() const { return m_network_type; } string get_mnemonic() const { return m_mnemonic; } - string get_language() const { return m_language; } + string get_mnemonic_language() const { return m_language; } vector get_languages() const; string get_private_view_key() const { return m_prv_view_key; } string get_private_spend_key() const { return m_prv_spend_key; }