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 0ba0d51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
13 changes: 2 additions & 11 deletions crates/blockifier/src/bouncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,8 @@ impl SerializeConfig for BouncerConfig {
}
}

#[derive(
Clone,
Copy,
Debug,
derive_more::Add,
derive_more::AddAssign,
derive_more::Sub,
Deserialize,
PartialEq,
Serialize,
)]
#[cfg_attr(any(test, feature = "testing"), derive(derive_more::Add, derive_more::AddAssign,))]
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
/// Represents the execution resources counted throughout block creation.
pub struct BouncerWeights {
pub builtin_count: BuiltinCount,
Expand Down
12 changes: 8 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,17 @@ 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::Sub,
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 0ba0d51

Please sign in to comment.