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 10, 2024
1 parent 324bdea commit 60a1c53
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions crates/starknet_api/src/execution_resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ use strum_macros::EnumIter;
use crate::block::{GasPrice, GasPriceVector, NonzeroGasPrice};
use crate::transaction::fields::{Fee, Resource};

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

0 comments on commit 60a1c53

Please sign in to comment.