Skip to content

Commit

Permalink
fix: amend check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Jan 22, 2025
1 parent a7af8cd commit f39737c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crates/pool/src/mempool/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,17 @@ where
}

pub(crate) fn check_eip7702(&self, uo: &UserOperationVariant) -> MempoolResult<()> {
if uo.authorization_tuple().is_some() && self.config.support_7702 {
return Ok(());
if uo.authorization_tuple().is_some() {
if self.config.support_7702 {
Ok(())
} else {
Err(MempoolError::EIPNotSupported(
"EIP 7702 is not supported".to_string(),
))
}
} else {
Ok(())
}
Err(MempoolError::EIPNotSupported(
"EIP 7702 is not supported".to_string(),
))
}

pub(crate) fn mine_operation(
Expand Down

0 comments on commit f39737c

Please sign in to comment.