Skip to content

Commit

Permalink
fix(core): do not send burnt base fee to treasury when its anchor tra…
Browse files Browse the repository at this point in the history
…nsaction (ethereum#80)
  • Loading branch information
davidtaikocha committed May 22, 2023
1 parent 59f0674 commit 5a56270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
fee.Mul(fee, effectiveTip)
st.state.AddBalance(st.evm.Context.Coinbase, fee)
// CHANGE(taiko): basefee is not burnt, but sent to a treasury instead.
if st.evm.ChainConfig().Taiko && st.evm.Context.BaseFee != nil {
if st.evm.ChainConfig().Taiko && st.evm.Context.BaseFee != nil && !st.isAnchor() {
st.state.AddBalance(
st.evm.ChainConfig().Treasury,
new(big.Int).Mul(st.evm.Context.BaseFee, new(big.Int).SetUint64(st.gasUsed())),
Expand Down

0 comments on commit 5a56270

Please sign in to comment.