mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
refactor: Drop ::HasWallets()
This commit is contained in:
parent
f154071ec8
commit
ccf1f6ea24
3 changed files with 1 additions and 8 deletions
|
|
@ -106,7 +106,7 @@ std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& reques
|
|||
return wallets[0];
|
||||
}
|
||||
|
||||
if (!HasWallets()) {
|
||||
if (wallets.empty()) {
|
||||
throw JSONRPCError(
|
||||
RPC_METHOD_NOT_FOUND, "Method not found (wallet method is disabled because no wallet is loaded)");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue