Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 3811e73

Browse files
authored
Fix: include tip in OP PVG calculation (#354)
1 parent 206b256 commit 3811e73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/gas/pvg.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ func CalcOptimismPVGWithEthClient(
112112
if err != nil {
113113
return nil, err
114114
}
115+
tip, err := eth.SuggestGasTipCap(context.Background())
116+
if err != nil {
117+
return nil, err
118+
}
115119
tx, err := transaction.HandleOps(&transaction.Opts{
116120
EOA: dummy,
117121
Eth: eth,
@@ -120,6 +124,7 @@ func CalcOptimismPVGWithEthClient(
120124
Batch: []*userop.UserOperation{op},
121125
Beneficiary: dummy.Address,
122126
BaseFee: head.BaseFee,
127+
Tip: tip,
123128
GasLimit: math.MaxUint64,
124129
NoSend: true,
125130
})

0 commit comments

Comments
 (0)