Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
chore(sender): improve transaction sender logs (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Feb 28, 2024
1 parent 6d5cc10 commit 5ade026
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/sender/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ func (s *Sender) adjustGas(txData types.TxData) {
blobFeeCap = blobFeeCap / 100 * rate
blobFeeCap = mathutil.MinUint64(blobFeeCap, s.MaxBlobFee)
baseTx.BlobFeeCap = uint256.NewInt(blobFeeCap)
default:
log.Warn("Unsupported transaction type when adjust gas fee", "from", s.Opts.From)
}
}

Expand All @@ -59,8 +61,12 @@ func (s *Sender) AdjustNonce(txData types.TxData) {
tx.Nonce = nonce
case *types.BlobTx:
tx.Nonce = nonce
case *types.LegacyTx:
tx.Nonce = nonce
case *types.AccessListTx:
tx.Nonce = nonce
default:
log.Warn("Unsupported transaction type", "from", s.Opts.From)
log.Debug("Unsupported transaction type when adjust nonce", "from", s.Opts.From)
}
}

Expand Down

0 comments on commit 5ade026

Please sign in to comment.