aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2021-09-15 22:11:31 -0400
committerRussell Yanofsky <russ@yanofsky.org>2021-09-15 22:22:10 -0400
commit865ee1af201238f48671e3b79b8215f896db7a05 (patch)
tree7723f9548fcdfb5b50d79dfa0cf7b3b04d577624 /src/qt
parentbd5670eafcfbdf2b0bcb2c74655f860bac8eef45 (diff)
Fix Qt test broken by #22219
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> https://github.com/bitcoin/bitcoin/pull/22219#issuecomment-920496509
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/test/addressbooktests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp
index f4d561286e..0de781661a 100644
--- a/src/qt/test/addressbooktests.cpp
+++ b/src/qt/test/addressbooktests.cpp
@@ -60,6 +60,8 @@ void EditAddressAndSubmit(
void TestAddAddressesToSendBook(interfaces::Node& node)
{
TestChain100Setup test;
+ auto wallet_client = interfaces::MakeWalletClient(*test.m_node.chain, *Assert(test.m_node.args));
+ test.m_node.wallet_client = wallet_client.get();
node.setContext(&test.m_node);
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(node.context()->chain.get(), "", CreateMockWalletDatabase());
wallet->SetupLegacyScriptPubKeyMan();