From 60a1c53ea0b4eab68539d756e340a4d12f7c9e63 Mon Sep 17 00:00:00 2001 From: Aviv Greenburg Date: Tue, 10 Dec 2024 18:21:00 +0200 Subject: [PATCH] fix(blockifier): fix derives of GasAmount --- crates/starknet_api/src/execution_resources.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/crates/starknet_api/src/execution_resources.rs b/crates/starknet_api/src/execution_resources.rs index 6a81a05c9c..32eafe4505 100644 --- a/crates/starknet_api/src/execution_resources.rs +++ b/crates/starknet_api/src/execution_resources.rs @@ -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,