Skip to content

Commit a30110f

Browse files
committed
Adding MaxGasPrice to Tx and TxRequest
1 parent 1c5c8e4 commit a30110f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chains/txmgr/types/tx.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ type TxRequest[ADDR chains.Hashable, TX_HASH chains.Hashable] struct {
7878
EncodedPayload []byte
7979
Value big.Int
8080
FeeLimit uint64
81+
MaxGasPrice *big.Int
8182
Meta *TxMeta[ADDR, TX_HASH]
8283
ForwarderAddress ADDR
8384

@@ -208,8 +209,9 @@ type Tx[
208209
Value big.Int
209210
// FeeLimit on the Tx is always the conceptual gas limit, which is not
210211
// necessarily the same as the on-chain encoded value (i.e. Optimism)
211-
FeeLimit uint64
212-
Error null.String
212+
FeeLimit uint64
213+
MaxGasPrice *big.Int
214+
Error null.String
213215
// BroadcastAt is updated every time an attempt for this tx is re-sent
214216
// In almost all cases it will be within a second or so of the actual send time.
215217
BroadcastAt *time.Time

0 commit comments

Comments
 (0)