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

Commit

Permalink
Merge branch 'main' into fix-logger
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Feb 28, 2024
2 parents 0ff8baf + 5ade026 commit 231f013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CI](https://github.com/taikoxyz/taiko-client/actions/workflows/test.yml/badge.svg)](https://github.com/taikoxyz/taiko-client/actions/workflows/test.yml)
[![Codecov](https://img.shields.io/codecov/c/github/taikoxyz/taiko-client?logo=codecov&token=OH6BJMVP6O)](https://codecov.io/gh/taikoxyz/taiko-client)

Taiko protocol's client software implementation in Go. Learn more about Taiko nodes with [the docs](https://taiko.xyz/docs/concepts/taiko-nodes).
Taiko protocol's client software implementation in Go. Learn more about Taiko nodes with [the docs](https://docs.taiko.xyz/core-concepts/taiko-nodes/).

## Project structure

Expand Down
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 231f013

Please sign in to comment.