mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
core: reduce alloc
This commit is contained in:
parent
127d1f42bb
commit
369b800e94
1 changed files with 3 additions and 3 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue