Skip to content

Commit ec97a2f

Browse files
committed
reduce alloc
1 parent 5d5962a commit ec97a2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TransactionToMessage(tx *types.Transaction, s types.Signer) (*Message, erro
122122
msg := &Message{
123123
Nonce: tx.Nonce(),
124124
GasLimit: tx.Gas(),
125-
GasPrice: new(big.Int).Set(tx.GasPrice()),
125+
GasPrice: tx.GasPrice(),
126126
To: tx.To(),
127127
Value: tx.Value(),
128128
Data: tx.Data(),

0 commit comments

Comments
 (0)