Skip to content

Commit

Permalink
Send BaseFee if not IsCel2
Browse files Browse the repository at this point in the history
We should preserve the original behaviour in that case.
  • Loading branch information
karlb committed Feb 6, 2024
1 parent f04fb31 commit 8845c5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,8 @@ func (st *StateTransition) distributeTxFees() error {

if st.evm.ChainConfig().IsCel2(st.evm.Context.Time) {
st.state.AddBalance(feeHandlerAddress, baseTxFee)
} else if st.evm.ChainConfig().Optimism != nil {
st.state.AddBalance(params.OptimismBaseFeeRecipient, baseTxFee)
}

if l1Cost != nil {
Expand Down

0 comments on commit 8845c5e

Please sign in to comment.