Skip to content

Commit

Permalink
ignore 0x7e for celo
Browse files Browse the repository at this point in the history
  • Loading branch information
finleydecker committed Oct 23, 2024
1 parent b7239be commit 270cc3c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions core/chains/evm/gas/chain_specific.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ func chainSpecificIsUsable(tx evmtypes.Transaction, baseFee *assets.Wei, chainTy
return false
}
}
switch chainType {
case chaintype.ChainOptimismBedrock,
chaintype.ChainKroma,
chaintype.ChainScroll,
chaintype.ChainZircuit,
chaintype.ChainCelo:
if chainType == chaintype.ChainOptimismBedrock || chainType == chaintype.ChainKroma || chainType == chaintype.ChainScroll || chainType == chaintype.ChainZircuit {
// This is a special deposit transaction type introduced in Bedrock upgrade.
// This is a system transaction that it will occur at least one time per block.
// We should discard this type before even processing it to avoid flooding the
Expand All @@ -33,12 +28,10 @@ func chainSpecificIsUsable(tx evmtypes.Transaction, baseFee *assets.Wei, chainTy
if tx.Type == 0x7e {
return false
}
default:
return true
}
if chainType == chaintype.ChainCelo {
// Celo specific transaction types that utilize the feeCurrency field.
if tx.Type == 0x7c || tx.Type == 0x7b {
if tx.Type == 0x7c || tx.Type == 0x7b || tx.Type == 0x7e {
return false
}
// Celo has not yet fully migrated to the 0x7c type for special feeCurrency transactions
Expand Down

0 comments on commit 270cc3c

Please sign in to comment.