Rename TxType variants to UpperCamelCase (#7012)

This commit is contained in:
Abner Zheng
2024-03-07 01:36:58 +08:00
committed by GitHub
parent dd6742e8b7
commit 6f8d1a8137
19 changed files with 116 additions and 116 deletions

View File

@ -326,7 +326,7 @@ mod builder {
}
// A sequencer's block should never contain blob transactions.
if matches!(sequencer_tx.tx_type(), TxType::EIP4844) {
if matches!(sequencer_tx.tx_type(), TxType::Eip4844) {
return Err(PayloadBuilderError::other(
OptimismPayloadBuilderError::BlobTransactionRejected,
))
@ -426,7 +426,7 @@ mod builder {
}
// A sequencer's block should never contain blob transactions.
if pool_tx.tx_type() == TxType::EIP4844 as u8 {
if pool_tx.tx_type() == TxType::Eip4844 as u8 {
return Err(PayloadBuilderError::other(
OptimismPayloadBuilderError::BlobTransactionRejected,
))