fix for wallet_remove command

This commit is contained in:
Lex Berezhny 2019-09-30 12:10:59 -04:00
parent 4a6af0b938
commit 02b01b89f2

View file

@ -1138,7 +1138,8 @@ class Daemon(metaclass=JSONRPCServerType):
Returns: {Wallet}
"""
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
return self.wallet_manager.wallets.pop(wallet)
self.wallet_manager.wallets.remove(wallet)
return wallet
ACCOUNT_DOC = """
Create, modify and inspect wallet accounts.