Skip to content

Commit

Permalink
feat: add v alias for Signature::y_parity serde (#17)
Browse files Browse the repository at this point in the history
* add v alias

* v
  • Loading branch information
klkvr authored Nov 13, 2024
1 parent 3e2b7db commit d68accf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eip7702/src/auth_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub struct SignedAuthorization {
inner: Authorization,
/// Signature parity value. We allow any [`U8`] here, however, the only valid values are `0`
/// and `1` and anything else will result in error during recovery.
#[cfg_attr(feature = "serde", serde(rename = "yParity"))]
#[cfg_attr(feature = "serde", serde(rename = "yParity", alias = "v"))]
y_parity: U8,
/// Signature `r` value.
r: U256,
Expand Down

0 comments on commit d68accf

Please sign in to comment.