Skip to content

Commit

Permalink
tests: make fake header when calculated blob fee
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Jan 23, 2025
1 parent f295aca commit 1cbcb9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/state_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
context.Difficulty = big.NewInt(0)
}
if config.IsCancun(new(big.Int), block.Time()) && t.json.Env.ExcessBlobGas != nil {
header := block.Header()
header.ExcessBlobGas = t.json.Env.ExcessBlobGas
header := &types.Header{
Time: block.Time(),
ExcessBlobGas: t.json.Env.ExcessBlobGas,
}
context.BlobBaseFee = eip4844.CalcBlobFee(config, header)
}

Expand Down

0 comments on commit 1cbcb9d

Please sign in to comment.