Skip to content

Commit eee4dac

Browse files
authored
chore: add eq/serde for InitialAndFloorGas (#3147)
1 parent 3ac56c3 commit eee4dac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/interpreter/src/gas/calc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ pub const fn memory_gas(num_words: usize) -> u64 {
361361
}
362362

363363
/// Init and floor gas from transaction
364-
#[derive(Clone, Copy, Debug, Default)]
364+
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
365+
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
365366
pub struct InitialAndFloorGas {
366367
/// Initial gas for transaction.
367368
pub initial_gas: u64,

0 commit comments

Comments
 (0)