Skip to content

Commit

Permalink
chore(deps): replace colored with yansi (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 28, 2022
1 parent 53d5018 commit 03fd04a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion anvil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ futures = "0.3"
serde_json = "1.0.67"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0.30"
colored = "2.0.0"
yansi = "0.5.1"

# cli
clap = { version = "3.0.10", features = [
Expand Down
12 changes: 6 additions & 6 deletions anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use crate::{
FeeManager,
};
use anvil_server::ServerConfig;
use colored::Colorize;
use ethers::{
core::k256::ecdsa::SigningKey,
prelude::{rand::thread_rng, Wallet, U256},
Expand All @@ -34,6 +33,7 @@ use foundry_evm::{
};
use parking_lot::RwLock;
use std::{net::IpAddr, path::PathBuf, str::FromStr, sync::Arc, time::Duration};
use yansi::Paint;

/// Default port the rpc will open
pub const NODE_PORT: u16 = 8545;
Expand Down Expand Up @@ -329,9 +329,9 @@ impl NodeConfig {
if self.silent {
return
}
println!("{}", BANNER.green());
println!("{}", Paint::green(BANNER));
println!(" {}", VERSION_MESSAGE);
println!(" {}", "https://github.com/foundry-rs/foundry".green());
println!(" {}", Paint::green("https://github.com/foundry-rs/foundry"));

print!(
r#"
Expand Down Expand Up @@ -375,15 +375,15 @@ Base Fee
==================
{}
"#,
format!("{}", self.base_fee).green()
Paint::green(format!("{}", self.base_fee))
);
print!(
r#"
Gas Price
==================
{}
"#,
format!("{}", self.gas_price).green()
Paint::green(format!("{}", self.gas_price))
);

print!(
Expand All @@ -392,7 +392,7 @@ Gas Limit
==================
{}
"#,
format!("{}", self.gas_limit).green()
Paint::green(format!("{}", self.gas_limit))
);

if let Some(fork) = fork {
Expand Down

0 comments on commit 03fd04a

Please sign in to comment.