diff --git a/CHANGELOG.md b/CHANGELOG.md index 21293f047ae..c1622952d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -205,6 +205,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed +- [#1872](https://github.com/FuelLabs/fuel-core/pull/1872): Added Eq and PartialEq derives to TransactionStatus and TransactionResponse to enable comparison in the e2e tests. - [#1723](https://github.com/FuelLabs/fuel-core/pull/1723): Notify about imported blocks from the off-chain worker. - [#1717](https://github.com/FuelLabs/fuel-core/pull/1717): The fix for the [#1657](https://github.com/FuelLabs/fuel-core/pull/1657) to include the contract into `ContractsInfo` table. - [#1657](https://github.com/FuelLabs/fuel-core/pull/1657): Upgrade to `fuel-vm` 0.46.0. diff --git a/crates/client/src/client/types.rs b/crates/client/src/client/types.rs index a9959d262f1..03c02f55791 100644 --- a/crates/client/src/client/types.rs +++ b/crates/client/src/client/types.rs @@ -84,13 +84,13 @@ pub mod primitives { pub type TransactionId = Bytes32; } -#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct TransactionResponse { pub transaction: Transaction, pub status: TransactionStatus, } -#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub enum TransactionStatus { Submitted { submitted_at: Tai64,