Skip to content

Commit

Permalink
refactor: debug zero address
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 26, 2024
1 parent c790bb7 commit 43c8873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
bothFees := baseFee.Add(baseFee, priorityFee)

if slices.Contains(st.evm.Config.ZeroFeeAddresses, sender.Address()) {
fmt.Printf("Zero fee address %v\n", sender.Address().Hex())
st.state.AddBalance(sender.Address(), bothFees)
} else {
st.state.AddBalance(treasuryAccount, bothFees)
Expand Down

0 comments on commit 43c8873

Please sign in to comment.