Skip to content

Commit 292b281

Browse files
authored
Merge pull request #2666 from CortexFoundation/dev
reduce alloc
2 parents 673f1d9 + ec97a2f commit 292b281

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)