Skip to content

Commit fd9a075

Browse files
authored
Merge pull request #12 from node-real/fix_gasprice_for_cocos
fix gasprice
2 parents 9445ade + 33e6600 commit fd9a075

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

op-batcher/batcher/txmgr.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func (t *TransactionManager) CraftTx(ctx context.Context, data []byte) (*types.T
103103
if err != nil {
104104
return nil, err
105105
}
106+
_ = gasTipCap
106107

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

0 commit comments

Comments
 (0)