Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jan 31, 2024
1 parent 0c48788 commit 5356b0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rollup/internal/controller/relayer/l2_relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func testGetBatchStatusByIndex(t *testing.T) {
assert.NoError(t, err)

cfg.L2Config.RelayerConfig.ChainMonitor.Enabled = true
relayer, err := NewLayer2Relayer(context.Background(), l2Cli, db, cfg.L2Config.RelayerConfig, false, nil)
relayer, err := NewLayer2Relayer(context.Background(), l2Cli, db, cfg.L2Config.RelayerConfig, false, false, nil)
assert.NoError(t, err)
assert.NotNil(t, relayer)

Expand Down
4 changes: 3 additions & 1 deletion rollup/internal/controller/sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (s *Sender) resubmitTransaction(tx *gethTypes.Transaction, baseFee uint64)
txInfo["adjusted_gas_fee_cap"] = gasFeeCap.Uint64()
}

log.Info("Transaction gas adjustment details", "txInfo", txInfo)
log.Info("Transaction gas adjustment details", "service", s.service, "name", s.name, "txInfo", txInfo)

nonce := tx.Nonce()
s.metrics.resubmitTransactionTotal.WithLabelValues(s.service, s.name).Inc()
Expand Down Expand Up @@ -459,6 +459,8 @@ func (s *Sender) checkPendingTransaction() {
}

log.Info("resubmit transaction",
"service", s.service,
"name", s.name,
"hash", tx.Hash().String(),
"from", s.auth.From.String(),
"nonce", tx.Nonce(),
Expand Down
2 changes: 1 addition & 1 deletion rollup/internal/controller/sender/sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func testResubmitTransactionWithRisingBaseFee(t *testing.T) {
// bump the basefee by 10x
baseFeePerGas *= 10
// resubmit and check that the gas fee has been adjusted accordingly
newTx, err := s.resubmitTransaction( tx, baseFeePerGas)
newTx, err := s.resubmitTransaction(tx, baseFeePerGas)
assert.NoError(t, err)

escalateMultipleNum := new(big.Int).SetUint64(s.config.EscalateMultipleNum)
Expand Down

0 comments on commit 5356b0e

Please sign in to comment.