mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
prevent panic in test for CalcExcessBlobGas
This commit is contained in:
parent
fda7b5a7e8
commit
e53bb74588
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ func TestCalcExcessBlobGas(t *testing.T) {
|
||||||
header := &types.Header{
|
header := &types.Header{
|
||||||
ExcessBlobGas: &tt.excess,
|
ExcessBlobGas: &tt.excess,
|
||||||
BlobGasUsed: &blobGasUsed,
|
BlobGasUsed: &blobGasUsed,
|
||||||
|
Number: big.NewInt(1),
|
||||||
}
|
}
|
||||||
result := CalcExcessBlobGas(config, header, *config.CancunTime)
|
result := CalcExcessBlobGas(config, header, *config.CancunTime)
|
||||||
if result != tt.want {
|
if result != tt.want {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue