Skip to content

Commit

Permalink
Merge pull request #4 from node-real/fix_gasprice
Browse files Browse the repository at this point in the history
fix gasprice
  • Loading branch information
s7v7nislands authored Apr 6, 2023
2 parents 9b95617 + 2bf1e92 commit 0188575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion op-batcher/batcher/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,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 @@ -118,7 +119,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,
}
// rawTx := &types.DynamicFeeTx{
Expand Down
3 changes: 2 additions & 1 deletion op-proposer/proposer/l2_output_submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ func (l *L2OutputSubmitter) CreateProposalTx(ctx context.Context, output *eth.Ou
if err != nil {
return nil, err
}
_ = gasTipCap

opts := &bind.TransactOpts{
From: l.from,
Expand All @@ -377,7 +378,7 @@ func (l *L2OutputSubmitter) CreateProposalTx(ctx context.Context, output *eth.Ou
},
Context: ctx,
Nonce: new(big.Int).SetUint64(nonce),
GasPrice: big.NewInt(0).Add(gasTipCap, gasFeeCap),
GasPrice: gasFeeCap,
NoSend: true,
}

Expand Down

0 comments on commit 0188575

Please sign in to comment.