perf(core): reduce alloc #33576 (#2085)

This commit is contained in:
Daniel Liu 2026-03-06 13:47:47 +08:00 committed by GitHub
parent 275424c44f
commit 5695f8a712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),