internal: None, range: None, next: None, }) .collect(), }) } fn load_wallet(&self, wallet: String) -> Result { if self.state().wallets.contains(&wallet) { self.state().loaded_wallets.insert(wallet.clone()); Ok(LoadWalletResult { name: wallet, warning: None, }) } else { Err(Self::not_found()) } } fn list_wallets(&self) -> Result, jsonrpc_core::Error> { Ok( self .state() .loaded_wallets .clone() .into_iter() .collect::>(), ) } }