Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Dec 14, 2023
1 parent 603df5d commit 95f25dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pallas-traverse/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,14 @@ impl<'b> MultiEraUpdate<'b> {

pub fn byron_proposed_max_tx_size(&self) -> Option<u64> {
match self {
MultiEraUpdate::Byron(_, x) => {
x.block_version_mod.as_ref()?.max_tx_size.deref().clone()
}
MultiEraUpdate::Byron(_, x) => *x.block_version_mod.as_ref()?.max_tx_size.deref(),
_ => None,
}
}

pub fn byron_proposed_block_version(&self) -> Option<(u16, u16, u8)> {
match self {
MultiEraUpdate::Byron(_, x) => x.block_version.clone(),
MultiEraUpdate::Byron(_, x) => x.block_version,
_ => None,
}
}
Expand Down

0 comments on commit 95f25dd

Please sign in to comment.