aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_test_fixture.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-03-26 12:40:27 +1000
committerAnthony Towns <aj@erisian.com.au>2022-03-30 17:07:28 +1000
commit7c9fe25c16d48b53a61fa2f6ff77eaf8820cb1f6 (patch)
tree9bfb4fb55f19156ae7de39242f932ff475431ce5 /src/wallet/test/wallet_test_fixture.h
parent2f0f056e08cd5a1435120592a9ecd212fcdb915b (diff)
wallet: move Assert() check into constructor
This puts it in a function body, so that __func__ is available for reporting any assertion failure.
Diffstat (limited to 'src/wallet/test/wallet_test_fixture.h')
-rw-r--r--src/wallet/test/wallet_test_fixture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/wallet_test_fixture.h b/src/wallet/test/wallet_test_fixture.h
index d4b855b145..e0b38a40e7 100644
--- a/src/wallet/test/wallet_test_fixture.h
+++ b/src/wallet/test/wallet_test_fixture.h
@@ -22,7 +22,7 @@ struct WalletTestingSetup : public TestingSetup {
explicit WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
~WalletTestingSetup();
- std::unique_ptr<interfaces::WalletLoader> m_wallet_loader = interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args));
+ std::unique_ptr<interfaces::WalletLoader> m_wallet_loader;
CWallet m_wallet;
std::unique_ptr<interfaces::Handler> m_chain_notifications_handler;
};