diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp index ba84a3733..a84a1de48 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -162,7 +162,7 @@ bool PendingTransactionImpl::commit(const std::string &filename, bool overwrite) return m_status == Status_Ok; } -std::string PendingTransactionImpl::commit_string() +std::string PendingTransactionImpl::commitToString() { std::string tx; diff --git a/src/wallet/api/pending_transaction.h b/src/wallet/api/pending_transaction.h index 0b9b09ece..e1c3cc678 100644 --- a/src/wallet/api/pending_transaction.h +++ b/src/wallet/api/pending_transaction.h @@ -45,7 +45,7 @@ public: ~PendingTransactionImpl(); int status() const override; std::string errorString() const override; - std::string commit_string() override; + std::string commitToString() override; bool commit(const std::string &filename = "", bool overwrite = false) override; uint64_t amount() const override; uint64_t dust() const override; diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index cd4206e6c..981e561ec 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -90,7 +90,7 @@ struct PendingTransaction virtual int status() const = 0; virtual std::string errorString() const = 0; // return string of transaction gives the same content which would be saved to file with commit(filename) - virtual std::string commit_string() = 0; + virtual std::string commitToString() = 0; // commit transaction or save to file if filename is provided. virtual bool commit(const std::string &filename = "", bool overwrite = false) = 0; virtual uint64_t amount() const = 0;