From 5695f8a712e4153c24007511f78b706386ebbf26 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Fri, 6 Mar 2026 13:47:47 +0800 Subject: [PATCH] perf(core): reduce alloc #33576 (#2085) --- core/state_transition.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_transition.go b/core/state_transition.go index 17dd6d6f70..86befa6be1 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -158,9 +158,9 @@ func TransactionToMessage(tx *types.Transaction, s types.Signer, balanceFee, blo msg := &Message{ Nonce: tx.Nonce(), GasLimit: tx.Gas(), - GasPrice: new(big.Int).Set(tx.GasPrice()), - GasFeeCap: new(big.Int).Set(tx.GasFeeCap()), - GasTipCap: new(big.Int).Set(tx.GasTipCap()), + GasPrice: tx.GasPrice(), + GasFeeCap: tx.GasFeeCap(), + GasTipCap: tx.GasTipCap(), To: tx.To(), Value: tx.Value(), Data: tx.Data(),