Skip to content

Commit

Permalink
use tracing feature of contracts crate, remove unused lines
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Oct 29, 2024
1 parent d0ebb83 commit 36cf376
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
16 changes: 0 additions & 16 deletions crates/astria-bridge-contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ impl BuildError {
})
}

#[must_use]
fn call_decimals<T: Into<Box<dyn std::error::Error + Send + Sync + 'static>>>(
source: T,
) -> Self {
Self(BuildErrorKind::CallDecimals {
source: source.into(),
})
}

#[must_use]
pub fn no_withdraws_configured() -> Self {
Self(BuildErrorKind::NoWithdrawsConfigured)
Expand Down Expand Up @@ -115,13 +106,6 @@ enum BuildErrorKind {
CallBaseChainAssetPrecision {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
#[error(
"failed to call the contract's `decimals` function, which must exist for an ERC20 \
contract; check that the provided contract is an ERC20"
)]
CallDecimals {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
#[error("ics20 asset must have a channel to be withdrawn via IBC")]
Ics20AssetWithoutChannel,
#[error("could not parse ics20 asset channel as channel ID")]
Expand Down
2 changes: 1 addition & 1 deletion crates/astria-bridge-withdrawer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] }
tokio-util = { workspace = true }
tonic = { workspace = true }

astria-bridge-contracts = { path = "../astria-bridge-contracts" }
astria-bridge-contracts = { path = "../astria-bridge-contracts", features = ["tracing"] }
astria-build-info = { path = "../astria-build-info", features = ["runtime"] }
astria-core = { path = "../astria-core", features = [
"serde",
Expand Down
2 changes: 1 addition & 1 deletion crates/astria-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde_yaml = "0.9.25"
termion = "4.0.3"
tracing-subscriber = "0.3.18"

astria-bridge-contracts = { path = "../astria-bridge-contracts" }
astria-bridge-contracts = { path = "../astria-bridge-contracts", features = ["tracing"] }
astria-core = { path = "../astria-core", features = ["serde"] }

clap = { workspace = true, features = ["derive", "env"] }
Expand Down

0 comments on commit 36cf376

Please sign in to comment.