good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 28ef23f4 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

internal/ethapi: make resent gas params optional

parent 704840a8
Branches
Tags
No related merge requests found
......@@ -1337,10 +1337,10 @@ func (s *PublicTransactionPoolAPI) Resend(ctx context.Context, sendArgs SendTxAr
if pFrom, err := types.Sender(signer, p); err == nil && pFrom == sendArgs.From && signer.Hash(p) == wantSigHash {
// Match. Re-sign and send the transaction.
if gasPrice != nil {
if gasPrice != nil && (*big.Int)(gasPrice).Sign() != 0 {
sendArgs.GasPrice = gasPrice
}
if gasLimit != nil {
if gasLimit != nil && *gasLimit != 0 {
sendArgs.Gas = gasLimit
}
signedTx, err := s.sign(sendArgs.From, sendArgs.toTransaction())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment