diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index 701408ea..a270a83c 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -7,6 +7,7 @@ #include "plain_wallet_api_impl.h" #include "currency_core/currency_config.h" #include "version.h" +#include "currency_core/currency_format_utils.h" //TODO: global objects, need refactoring. Just temporary solution std::map ginstances; @@ -44,6 +45,11 @@ namespace plain_wallet return get_bundle_root_dir() + "/Documents"; } + std::string print_money(int64_t amount) + { + return currency::print_money(amount); + } + void initialize_logs() { std::string log_dir = get_bundle_root_dir(); diff --git a/src/wallet/plain_wallet_api.h b/src/wallet/plain_wallet_api.h index ae58ba0c..42e70362 100644 --- a/src/wallet/plain_wallet_api.h +++ b/src/wallet/plain_wallet_api.h @@ -14,6 +14,7 @@ namespace plain_wallet void destroy_instance(hwallet h); std::string get_version(); std::string get_wallet_files(); + std::string print_money(int64_t); std::string open(hwallet h, const std::string& path, const std::string& password); std::string restore(hwallet h, const std::string& seed, const std::string& path, const std::string& password);