Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
CallInput
,EcdsaRs
,EcdsaV
,EvmExecutionMetrics
,DateTimeNow
) with additional derives includingPartialEq
,Eq
,fake::Dummy
, andserde::Serialize
/Deserialize
.Dummy<Faker>
forEcdsaRs
andEcdsaV
.gen_test_serde!
macros for several structs to generate serde tests.fake
dependency inCargo.toml
to include thechrono
feature.Changes walkthrough 📝
call_input.rs
Enhance
CallInput
struct with additional derives and serde attributessrc/eth/primitives/call_input.rs
PartialEq
,Eq
,fake::Dummy
, andserde::Serialize
derives toCallInput
.serde
attributes.ecdsa_rs.rs
Enhance
EcdsaRs
struct with additional derives and dummyimplementation
src/eth/primitives/ecdsa_rs.rs
DebugAsJson
,PartialEq
,Eq
,serde::Serialize
, andserde::Deserialize
derives toEcdsaRs
.Dummy
forEcdsaRs
.gen_newtype_from
macro for additional types.ecdsa_v.rs
Enhance
EcdsaV
struct with additional derives and dummy implementationsrc/eth/primitives/ecdsa_v.rs
DebugAsJson
,PartialEq
,Eq
,serde::Serialize
, andserde::Deserialize
derives toEcdsaV
.Dummy
forEcdsaV
.gen_newtype_from
macro for additional types.execution_metrics.rs
Enhance `EvmExecutionMetrics` struct with additional derives
src/eth/primitives/execution_metrics.rs
PartialEq
,Eq
,fake::Dummy
, andserde::Deserialize
derives toEvmExecutionMetrics
.now.rs
Enhance `DateTimeNow` struct with additional derives
src/eth/primitives/now.rs
DebugAsJson
,PartialEq
,Eq
,fake::Dummy
, andserde::Deserialize
derives to
DateTimeNow
.mod.rs
Add serde test generation for multiple structs
src/eth/primitives/mod.rs
gen_test_serde!
macros for multiple structs.Cargo.toml
Update `fake` dependency to include `chrono` feature
Cargo.toml
chrono
feature tofake
dependency.