diff --git a/account_manager/src/lib.rs b/account_manager/src/lib.rs index 793163f020..b8bceeafd4 100644 --- a/account_manager/src/lib.rs +++ b/account_manager/src/lib.rs @@ -199,8 +199,8 @@ fn run_new_validator_subcommand( Eth2TestnetConfig::load(testnet_dir.clone()) .map_err(|e| format!("Failed to load testnet dir at {:?}: {}", testnet_dir, e))? } else { - Eth2TestnetConfig::hardcoded() - .map_err(|e| format!("Failed to load hardcoded testnet dir: {}", e))? + Eth2TestnetConfig::hard_coded() + .map_err(|e| format!("Failed to load hard_coded testnet dir: {}", e))? }; // Convert from `types::Address` to `web3::types::Address`. diff --git a/beacon_node/src/config.rs b/beacon_node/src/config.rs index b2ced923a4..2d8c76b5db 100644 --- a/beacon_node/src/config.rs +++ b/beacon_node/src/config.rs @@ -310,7 +310,7 @@ fn init_new_client( Eth2TestnetConfig::load(testnet_dir.clone()) .map_err(|e| format!("Unable to open testnet dir at {:?}: {}", testnet_dir, e))? } else { - Eth2TestnetConfig::hardcoded() + Eth2TestnetConfig::hard_coded() .map_err(|e| format!("Unable to load hard-coded testnet dir: {}", e))? }; diff --git a/eth2/utils/eth2_testnet_config/src/lib.rs b/eth2/utils/eth2_testnet_config/src/lib.rs index 1bc7f53aff..14f6ace3d9 100644 --- a/eth2/utils/eth2_testnet_config/src/lib.rs +++ b/eth2/utils/eth2_testnet_config/src/lib.rs @@ -40,7 +40,7 @@ impl Eth2TestnetConfig { // considered the default Lighthouse testnet. // // Returns an error if those included bytes are invalid (this is unlikely). - pub fn hardcoded() -> Result { + pub fn hard_coded() -> Result { Ok(Self { deposit_contract_address: serde_yaml::from_reader(HARDCODED_DEPOSIT_CONTRACT) .map_err(|e| format!("Unable to parse contract address: {:?}", e))?, @@ -200,9 +200,9 @@ mod tests { type E = MinimalEthSpec; #[test] - fn hardcoded_works() { + fn hard_coded_works() { let dir: Eth2TestnetConfig = - Eth2TestnetConfig::hardcoded().expect("should decode hardcoded params"); + Eth2TestnetConfig::hard_coded().expect("should decode hard_coded params"); assert!(dir.boot_enr.is_some()); assert!(dir.genesis_state.is_some());