mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
use CWallet*
Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
parent
fe7e3f2f71
commit
06d3d775d1
@ -2994,7 +2994,7 @@ UniValue createwallet(const JSONRPCRequest& request)
|
||||
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) {
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, "Wallet creation failed.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user