Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ derive_more = { version = "2", features = ["from", "into"] }
dialoguer = "0.12"
digest = "0.10"
directories = "6"
displaydoc = "0.2"
educe = { version = "0.6", features = ["Debug"], default-features = false }
enumflags2 = "0.7"
ethereum-types = { version = "0.16", features = ["ethbloom"] }
Expand Down
8 changes: 2 additions & 6 deletions src/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,16 @@ static INITIAL_FIL_RESERVED: LazyLock<TokenAmount> =
/// Forest builtin `filecoin` network chains. In general only `mainnet` and its
/// chain information should be considered stable.
#[derive(
Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default, Hash, displaydoc::Display,
Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default, Hash, derive_more::Display,
)]
#[cfg_attr(test, derive(derive_quickcheck_arbitrary::Arbitrary))]
#[serde(tag = "type", content = "name", rename_all = "lowercase")]
#[display(rename_all = "lowercase")]
pub enum NetworkChain {
/// mainnet
#[default]
Mainnet,
/// calibnet
Calibnet,
/// butterflynet
Butterflynet,
/// devnet
#[displaydoc("{0}")]
Devnet(String),
}

Expand Down
4 changes: 2 additions & 2 deletions src/rpc/methods/eth/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ impl TryFrom<EthCallMessage> for Message {
Default,
Clone,
JsonSchema,
displaydoc::Display,
derive_more::Display,
derive_more::From,
derive_more::Into,
derive_more::FromStr,
)]
#[displaydoc("{0:#x}")]
#[display("{_0:#x}")]
pub struct EthHash(#[schemars(with = "String")] pub ethereum_types::H256);
lotus_json_with_self!(EthHash);

Expand Down
2 changes: 1 addition & 1 deletion src/rpc/reflect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub trait RpcMethod<const ARITY: usize> {
PartialOrd,
Ord,
Hash,
displaydoc::Display,
derive_more::Display,
Serialize,
Deserialize,
)]
Expand Down
3 changes: 1 addition & 2 deletions src/shim/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,11 @@ impl GetSize for Address {
Ord,
Serialize,
Deserialize,
displaydoc::Display,
derive_more::Display,
derive_more::From,
derive_more::Into,
)]
#[serde(transparent)]
#[displaydoc("{0}")]
pub struct StrictAddress(pub Address);

impl FromStr for StrictAddress {
Expand Down
Loading