diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-06-23 16:54:13 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-07-01 12:57:51 -0400 |
commit | 171366e89b828a557f8262d9dc14ff7a03f813f7 (patch) | |
tree | c8f8f19149131309d1df93a1c98048696206350f /src/test/util | |
parent | 9571c69b51115454c6a699be9492024f7b46c2b4 (diff) | |
download | bitcoin-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.cpp | 3 |
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); |