Skip to content

Commit

Permalink
chore: remove test u8 check (#1825)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Oct 17, 2024
1 parent 1887802 commit 4359a5f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bins/revme/src/cmd/statetest/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use deserializer::*;
pub use eip7702::TxEip7702;
pub use spec::SpecName;

use revm::primitives::{
alloy_primitives::Parity, AccessList, Address, AuthorizationList, Bytes, HashMap, B256, U256,
};
use revm::primitives::{AccessList, Address, AuthorizationList, Bytes, HashMap, B256, U256};
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;

Expand Down Expand Up @@ -62,11 +60,6 @@ impl Test {
if txbytes.first() == Some(&0x04) {
let mut txbytes = &txbytes[1..];
let tx = TxEip7702::decode(&mut txbytes)?;
if let Parity::Eip155(parity) = tx.signature.v() {
if parity < u8::MAX as u64 {
return Err(alloy_rlp::Error::Custom("Invalid parity value"));
}
}
return Ok(Some(
AuthorizationList::Signed(tx.authorization_list).into_recovered(),
));
Expand Down

0 comments on commit 4359a5f

Please sign in to comment.