mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: calculate parity of legacy EIP155 txs correctly in alloy compat (#8302)
This commit is contained in:
@ -28,7 +28,7 @@ impl TryFrom<alloy_rpc_types::Block> for Block {
|
|||||||
s: signature.s,
|
s: signature.s,
|
||||||
odd_y_parity: signature
|
odd_y_parity: signature
|
||||||
.y_parity
|
.y_parity
|
||||||
.unwrap_or(alloy_rpc_types::Parity(false))
|
.unwrap_or_else(|| alloy_rpc_types::Parity(!signature.v.bit(0)))
|
||||||
.0,
|
.0,
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user