From 4a5ce4d025e7a48cc539888d64e023251689b76b Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Fri, 16 Jan 2026 08:34:49 +0800 Subject: [PATCH] core,core/vm: remove BlobFeeCap field in TxContext that do not need anymore --- core/evm.go | 4 +--- core/vm/evm.go | 1 - core/vm/runtime/env.go | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/evm.go b/core/evm.go index 18d940fdd2..0f376878ad 100644 --- a/core/evm.go +++ b/core/evm.go @@ -83,9 +83,7 @@ func NewEVMTxContext(msg *Message) vm.TxContext { GasPrice: new(big.Int).Set(msg.GasPrice), BlobHashes: msg.BlobHashes, } - if msg.BlobGasFeeCap != nil { - ctx.BlobFeeCap = new(big.Int).Set(msg.BlobGasFeeCap) - } + return ctx } diff --git a/core/vm/evm.go b/core/vm/evm.go index 25a3318c02..055422e2fc 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -75,7 +75,6 @@ type TxContext struct { Origin common.Address // Provides information for ORIGIN GasPrice *big.Int // Provides information for GASPRICE (and is used to zero the basefee if NoBaseFee is set) BlobHashes []common.Hash // Provides information for BLOBHASH - BlobFeeCap *big.Int // Is used to zero the blobbasefee if NoBaseFee is set AccessEvents *state.AccessEvents // Capture all state accesses for this tx } diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index e54041f7e2..22cda889ae 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -26,7 +26,6 @@ func NewEnv(cfg *Config) *vm.EVM { Origin: cfg.Origin, GasPrice: cfg.GasPrice, BlobHashes: cfg.BlobHashes, - BlobFeeCap: cfg.BlobFeeCap, } blockContext := vm.BlockContext{ CanTransfer: core.CanTransfer,