Skip to content

Commit

Permalink
Merge pull request #12 from node-real/fix_gasprice_for_cocos
Browse files Browse the repository at this point in the history
fix gasprice
  • Loading branch information
keroro520 authored Apr 17, 2023
2 parents 9445ade + 33e6600 commit fd9a075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion op-batcher/batcher/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (t *TransactionManager) CraftTx(ctx context.Context, data []byte) (*types.T
if err != nil {
return nil, err
}
_ = gasTipCap

childCtx, cancel := context.WithTimeout(ctx, networkTimeout)
nonce, err := t.l1Client.NonceAt(childCtx, t.senderAddress, nil)
Expand All @@ -114,7 +115,7 @@ func (t *TransactionManager) CraftTx(ctx context.Context, data []byte) (*types.T
rawTx := &types.LegacyTx{
Nonce: nonce,
To: &t.batchInboxAddress,
GasPrice: big.NewInt(0).Add(gasTipCap, gasFeeCap),
GasPrice: gasFeeCap,
Data: data,
}
t.log.Info("creating tx", "to", rawTx.To, "from", t.senderAddress)
Expand Down

0 comments on commit fd9a075

Please sign in to comment.