cmd/emv/internal/t8ntool: fix shadowing of `excessBlobGas` (#29263)

fix(t8n): unexpected `excessBlobGas` shadowed
pull/29204/head^2
John Xu 6 months ago committed by GitHub
parent 20d3e0ac06
commit d28adb61bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/evm/internal/t8ntool/execution.go

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

Loading…
Cancel
Save