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

Commit 5ade026

Browse files
authored
chore(sender): improve transaction sender logs (#578)
1 parent 6d5cc10 commit 5ade026

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/sender/common.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ func (s *Sender) adjustGas(txData types.TxData) {
4242
blobFeeCap = blobFeeCap / 100 * rate
4343
blobFeeCap = mathutil.MinUint64(blobFeeCap, s.MaxBlobFee)
4444
baseTx.BlobFeeCap = uint256.NewInt(blobFeeCap)
45+
default:
46+
log.Warn("Unsupported transaction type when adjust gas fee", "from", s.Opts.From)
4547
}
4648
}
4749

@@ -59,8 +61,12 @@ func (s *Sender) AdjustNonce(txData types.TxData) {
5961
tx.Nonce = nonce
6062
case *types.BlobTx:
6163
tx.Nonce = nonce
64+
case *types.LegacyTx:
65+
tx.Nonce = nonce
66+
case *types.AccessListTx:
67+
tx.Nonce = nonce
6268
default:
63-
log.Warn("Unsupported transaction type", "from", s.Opts.From)
69+
log.Debug("Unsupported transaction type when adjust nonce", "from", s.Opts.From)
6470
}
6571
}
6672

0 commit comments

Comments
 (0)