chore: Updated ENS resolution approach
3b04e3df
1 file(s) · +1 −1
| 438 | 438 | ||
| 439 | 439 | ||
| 440 | 440 | println!(); |
|
| 441 | - | if !input.starts_with("0x"){ |
|
| 441 | + | if input.ends_with(".eth") || input.ends_with(".box"){ |
|
| 442 | 442 | let ens_display = format!("{}", input.bright_green()); |
|
| 443 | 443 | println!("{}", format!("ENS: {}", ens_display).bright_cyan()); |
|
| 444 | 444 | } |