Skip to content

Commit

Permalink
Fix Qt test broken by bitcoin#22219
Browse files Browse the repository at this point in the history
It looks like this should have been caught by CI but perhaps there was a
conflict with a recently merged PR. Failure reported by fanquake <fanquake@gmail.com>
bitcoin#22219 (comment)
  • Loading branch information
ryanofsky committed Sep 16, 2021
1 parent bd5670e commit f2c0afd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/test/addressbooktests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <key.h>
#include <key_io.h>
#include <wallet/context.h>
#include <wallet/wallet.h>
#include <walletinitinterface.h>

Expand Down Expand Up @@ -109,7 +110,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node)
std::unique_ptr<const PlatformStyle> platformStyle(PlatformStyle::instantiate("other"));
OptionsModel optionsModel;
ClientModel clientModel(node, &optionsModel);
WalletContext& context = *node.walletClient().context();
WalletContext context;
AddWallet(context, wallet);
WalletModel walletModel(interfaces::MakeWallet(context, wallet), clientModel, platformStyle.get());
RemoveWallet(context, wallet, /* load_on_start= */ std::nullopt);
Expand Down

0 comments on commit f2c0afd

Please sign in to comment.