Skip to content

Commit d28adb6

Browse files
authored
cmd/emv/internal/t8ntool: fix shadowing of excessBlobGas (ethereum#29263)
fix(t8n): unexpected `excessBlobGas` shadowed
1 parent 20d3e0a commit d28adb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/evm/internal/t8ntool/execution.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
169169
// Calculate the BlobBaseFee
170170
var excessBlobGas uint64
171171
if pre.Env.ExcessBlobGas != nil {
172-
excessBlobGas := *pre.Env.ExcessBlobGas
172+
excessBlobGas = *pre.Env.ExcessBlobGas
173173
vmContext.BlobBaseFee = eip4844.CalcBlobFee(excessBlobGas)
174174
} else {
175175
// If it is not explicitly defined, but we have the parent values, we try

0 commit comments

Comments
 (0)