From 171366e89b828a557f8262d9dc14ff7a03f813f7 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 23 Jun 2021 16:54:13 -0400 Subject: Use bilingual_str for address fetching functions For GetNewDestination, GetNewChangeDestination, and GetReservedDestination, use bilingual_str for errors --- src/wallet/spend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet/spend.cpp') diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 6a8df437ae..cd51ead539 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -618,9 +618,9 @@ bool CWallet::CreateTransactionInternal( // Reserve a new key pair from key pool. If it fails, provide a dummy // destination in case we don't need change. CTxDestination dest; - std::string dest_err; + bilingual_str dest_err; if (!reservedest.GetReservedDestination(dest, true, dest_err)) { - error = strprintf(_("Transaction needs a change address, but we can't generate it. %s"), dest_err); + error = _("Transaction needs a change address, but we can't generate it.") + Untranslated(" ") + dest_err; } scriptChange = GetScriptForDestination(dest); // A valid destination implies a change script (and -- cgit v1.2.3