Skip to content

Commit

Permalink
fix(blockifier): fix derives of GasAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
avivg-starkware committed Dec 16, 2024
1 parent 488fcfa commit 5eecb98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 1 addition & 9 deletions crates/blockifier/src/bouncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,7 @@ impl SerializeConfig for BouncerConfig {
}

#[derive(
Clone,
Copy,
Debug,
derive_more::Add,
derive_more::AddAssign,
derive_more::Sub,
Deserialize,
PartialEq,
Serialize,
Clone, Copy, Debug, derive_more::Add, derive_more::AddAssign, Deserialize, PartialEq, Serialize,
)]
/// Represents the execution resources counted throughout block creation.
pub struct BouncerWeights {
Expand Down
11 changes: 7 additions & 4 deletions crates/starknet_api/src/execution_resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ use crate::transaction::fields::{Fee, Resource};

#[cfg_attr(
any(test, feature = "testing"),
derive(derive_more::Sum, derive_more::Div, derive_more::SubAssign)
derive(
derive_more::Sum,
derive_more::Add,
derive_more::AddAssign,
derive_more::Div,
derive_more::SubAssign
)
)]
#[derive(
derive_more::Display,
derive_more::Sub,
derive_more::Add,
derive_more::AddAssign,
Clone,
Copy,
Debug,
Expand Down

0 comments on commit 5eecb98

Please sign in to comment.