diff --git a/Cargo.toml b/Cargo.toml index 52e1dd9..5fdc32b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "starknet_api" -version = "0.13.0-dev.4" +version = "0.13.0-dev.5" edition = "2021" repository = "https://github.com/starkware-libs/starknet-api" license = "Apache-2.0" diff --git a/src/block_hash/block_hash_calculator.rs b/src/block_hash/block_hash_calculator.rs index 41bccd5..28e3d3f 100644 --- a/src/block_hash/block_hash_calculator.rs +++ b/src/block_hash/block_hash_calculator.rs @@ -1,4 +1,5 @@ use once_cell::sync::Lazy; +use serde::Deserialize; use starknet_types_core::felt::Felt; use starknet_types_core::hash::Poseidon; @@ -26,7 +27,7 @@ static STARKNET_BLOCK_HASH0: Lazy = Lazy::new(|| { }); /// The common fields of transaction output types. -#[derive(Clone)] +#[derive(Clone, Deserialize, PartialEq, Eq)] pub struct TransactionOutputForHash { pub actual_fee: Fee, pub events: Vec,