Skip to content

Commit

Permalink
Fix eth feature enabled build (nymtech#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
neacsu authored Jun 21, 2022
1 parent f3a9263 commit 03b484d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions gateway/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ mod tests {
mnemonic: Some("a b c".to_string()),
statistics_service_url: None,
enabled_statistics: None,
#[cfg(all(feature = "eth", not(feature = "coconut")))]
enabled_credentials_mode: None,
#[cfg(all(feature = "eth", not(feature = "coconut")))]
eth_endpoint: "".to_string(),
#[cfg(all(feature = "eth", not(feature = "coconut")))]
validators: None,
};

let config = Config::new(&args.id);
Expand Down
6 changes: 3 additions & 3 deletions gateway/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ pub struct Run {
#[clap(long)]
mnemonic: Option<String>,

/// Set this gateway to work in a disabled credentials mode that would allow clients to bypass bandwidth credential requirement
/// Set this gateway to work in a enabled credentials mode that would disallow clients to bypass bandwidth credential requirement
#[cfg(all(feature = "eth", not(feature = "coconut")))]
#[clap(long)]
disabled_credentials_mode: bool,
enabled_credentials_mode: Option<bool>,

/// URL of an Ethereum full node that we want to use for getting bandwidth tokens from ERC20 tokens
#[cfg(all(feature = "eth", not(feature = "coconut")))]
Expand Down Expand Up @@ -84,7 +84,7 @@ impl From<Run> for OverrideConfig {
mnemonic: run_config.mnemonic,

#[cfg(all(feature = "eth", not(feature = "coconut")))]
disabled_credentials_mode: run_config.disabled_credentials_mode,
enabled_credentials_mode: run_config.enabled_credentials_mode,

#[cfg(all(feature = "eth", not(feature = "coconut")))]
eth_endpoint: run_config.eth_endpoint,
Expand Down

0 comments on commit 03b484d

Please sign in to comment.