core: reduce alloc

This commit is contained in:
cuiweixie 2026-01-10 11:34:53 +08:00
parent 127d1f42bb
commit 369b800e94

View file

@ -177,9 +177,9 @@ func TransactionToMessage(tx *types.Transaction, s types.Signer, baseFee *big.In
msg := &Message{ msg := &Message{
Nonce: tx.Nonce(), Nonce: tx.Nonce(),
GasLimit: tx.Gas(), GasLimit: tx.Gas(),
GasPrice: new(big.Int).Set(tx.GasPrice()), GasPrice: tx.GasPrice(),
GasFeeCap: new(big.Int).Set(tx.GasFeeCap()), GasFeeCap: tx.GasFeeCap(),
GasTipCap: new(big.Int).Set(tx.GasTipCap()), GasTipCap: tx.GasTipCap(),
To: tx.To(), To: tx.To(),
Value: tx.Value(), Value: tx.Value(),
Data: tx.Data(), Data: tx.Data(),