Get config for a wallet
(&self, wallet_name: &str)
| 82 | |
| 83 | /// Get config for a wallet |
| 84 | pub fn get_wallet_opts(&self, wallet_name: &str) -> Result<WalletOpts, Error> { |
| 85 | self.wallets |
| 86 | .get(wallet_name) |
| 87 | .ok_or_else(|| Error::Generic(format!("Wallet {wallet_name} not found in config")))? |
| 88 | .try_into() |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl TryFrom<&WalletConfigInner> for WalletOpts { |
no outgoing calls
no test coverage detected