chore: Updated approach for detecting ENS 8d014fe2
Steve Simkins · 2025-07-28 20:15 1 file(s) · +2 −2
src/main.rs +2 −2
333 333
  input: &str,
334 334
  networks: &HashMap<u64, Network>
335 335
) -> Result<String, Box<dyn Error>> {
336 -
  if input.to_lowercase().ends_with(".eth") {
336 +
  if input.contains(".") {
337 337
    let mainnet = networks.get(&1);
338 338
339 339
    let rpc_url = match mainnet {
438 438
439 439
440 440
      println!();
441 -
      if input.ends_with(".eth") || input.ends_with(".box"){
441 +
      if input.contains("."){
442 442
        let ens_display = format!("{}", input.bright_green());
443 443
        println!("{}", format!("ENS: {}", ens_display).bright_cyan());
444 444
      }