Skip to content

Commit

Permalink
Merge pull request #804 from fluidvanadium/config
Browse files Browse the repository at this point in the history
Config
  • Loading branch information
Oscar-Pepper authored Feb 23, 2024
2 parents c63a75b + cab92f5 commit f21d75d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zingoconfig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl ZingoConfigBuilder {
/// use http::Uri;
/// assert_eq!(ZingoConfigBuilder::default().set_lightwalletd_uri(("https://zcash.mysideoftheweb.com:19067").parse::<Uri>().unwrap()).lightwalletd_uri.clone().unwrap(), "https://zcash.mysideoftheweb.com:19067");
/// ```
pub fn set_lightwalletd_uri(&mut self, lightwalletd_uri: http::Uri) -> &Self {
pub fn set_lightwalletd_uri(&mut self, lightwalletd_uri: http::Uri) -> &mut Self {
self.lightwalletd_uri = Some(lightwalletd_uri);
self
}
Expand All @@ -137,7 +137,7 @@ impl ZingoConfigBuilder {
/// use zingoconfig::ChainType::Testnet;
/// assert_eq!(ZingoConfigBuilder::default().set_chain(Testnet).create().chain, Testnet);
/// ```
pub fn set_chain(&mut self, chain: ChainType) -> &Self {
pub fn set_chain(&mut self, chain: ChainType) -> &mut Self {
self.chain = chain;
self
}
Expand All @@ -150,7 +150,7 @@ impl ZingoConfigBuilder {
/// let config = ZingoConfigBuilder::default().set_wallet_dir(dir.clone()).create();
/// assert_eq!(config.wallet_dir.clone().unwrap(), dir);
/// ```
pub fn set_wallet_dir(&mut self, dir: PathBuf) -> &Self {
pub fn set_wallet_dir(&mut self, dir: PathBuf) -> &mut Self {
self.wallet_dir = Some(dir);
self
}
Expand Down

0 comments on commit f21d75d

Please sign in to comment.