use CWallet*

Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
pasta 2020-12-15 23:24:44 -06:00
parent fe7e3f2f71
commit 06d3d775d1
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -2994,7 +2994,7 @@ UniValue createwallet(const JSONRPCRequest& request)
throw JSONRPCError(RPC_WALLET_ERROR, "Wallet file verification failed: " + error); throw JSONRPCError(RPC_WALLET_ERROR, "Wallet file verification failed: " + error);
} }
std::shared_ptr<CWallet> const wallet = CWallet::CreateWalletFromFile(wallet_name, fs::absolute(wallet_name, GetWalletDir())); CWallet* const wallet = CWallet::CreateWalletFromFile(wallet_name, fs::absolute(wallet_name, GetWalletDir()));
if (!wallet) { if (!wallet) {
throw JSONRPCError(RPC_WALLET_ERROR, "Wallet creation failed."); throw JSONRPCError(RPC_WALLET_ERROR, "Wallet creation failed.");
} }