Skip to content

Commit

Permalink
fix(core): fix a transaction Message assembling issue (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored and RogerLamTd committed Dec 11, 2024
1 parent 2dd220b commit b3b6276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
if err != nil {
return nil, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)
}
if p.config.IsOntake(block.Number()) {
msg.BasefeeSharingPctg = DecodeOntakeExtraData(header.Extra)
}
statedb.SetTxContext(tx.Hash(), i)

receipt, err := ApplyTransactionWithEVM(msg, p.config, gp, statedb, blockNumber, blockHash, tx, usedGas, vmenv)
Expand Down

0 comments on commit b3b6276

Please sign in to comment.