aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-06-23 16:54:13 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-07-01 12:57:51 -0400
commit171366e89b828a557f8262d9dc14ff7a03f813f7 (patch)
treec8f8f19149131309d1df93a1c98048696206350f /src/test/util
parent9571c69b51115454c6a699be9492024f7b46c2b4 (diff)
downloadbitcoin-171366e89b828a557f8262d9dc14ff7a03f813f7.tar.xz
Use bilingual_str for address fetching functions
For GetNewDestination, GetNewChangeDestination, and GetReservedDestination, use bilingual_str for errors
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/wallet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/util/wallet.cpp b/src/test/util/wallet.cpp
index fd6012e9fe..061659818f 100644
--- a/src/test/util/wallet.cpp
+++ b/src/test/util/wallet.cpp
@@ -8,6 +8,7 @@
#include <outputtype.h>
#include <script/standard.h>
#ifdef ENABLE_WALLET
+#include <util/translation.h>
#include <wallet/wallet.h>
#endif
@@ -18,7 +19,7 @@ std::string getnewaddress(CWallet& w)
{
constexpr auto output_type = OutputType::BECH32;
CTxDestination dest;
- std::string error;
+ bilingual_str error;
if (!w.GetNewDestination(output_type, "", dest, error)) assert(false);
return EncodeDestination(dest);