@@ -16,32 +16,32 @@ type ArbitrumUnsignedTx struct {
16
16
ChainId * big.Int
17
17
From common.Address
18
18
19
- Nonce uint64 // nonce of sender account
20
- GasPrice * big.Int // wei per gas
21
- Gas uint64 // gas limit
22
- To * common.Address `rlp:"nil"` // nil means contract creation
23
- Value * big.Int // wei amount
24
- Data []byte // contract invocation input data
19
+ Nonce uint64 // nonce of sender account
20
+ GasFeeCap * big.Int // wei per gas
21
+ Gas uint64 // gas limit
22
+ To * common.Address `rlp:"nil"` // nil means contract creation
23
+ Value * big.Int // wei amount
24
+ Data []byte // contract invocation input data
25
25
}
26
26
27
27
func (tx * ArbitrumUnsignedTx ) txType () byte { return ArbitrumUnsignedTxType }
28
28
29
29
func (tx * ArbitrumUnsignedTx ) copy () TxData {
30
30
cpy := & ArbitrumUnsignedTx {
31
- ChainId : new (big.Int ),
32
- Nonce : tx .Nonce ,
33
- GasPrice : new (big.Int ),
34
- Gas : tx .Gas ,
35
- From : tx .From ,
36
- To : nil ,
37
- Value : new (big.Int ),
38
- Data : common .CopyBytes (tx .Data ),
31
+ ChainId : new (big.Int ),
32
+ Nonce : tx .Nonce ,
33
+ GasFeeCap : new (big.Int ),
34
+ Gas : tx .Gas ,
35
+ From : tx .From ,
36
+ To : nil ,
37
+ Value : new (big.Int ),
38
+ Data : common .CopyBytes (tx .Data ),
39
39
}
40
40
if tx .ChainId != nil {
41
41
cpy .ChainId .Set (tx .ChainId )
42
42
}
43
- if tx .GasPrice != nil {
44
- cpy .GasPrice .Set (tx .GasPrice )
43
+ if tx .GasFeeCap != nil {
44
+ cpy .GasFeeCap .Set (tx .GasFeeCap )
45
45
}
46
46
if tx .To != nil {
47
47
tmp := * tx .To
@@ -57,9 +57,9 @@ func (tx *ArbitrumUnsignedTx) chainID() *big.Int { return tx.ChainId }
57
57
func (tx * ArbitrumUnsignedTx ) accessList () AccessList { return nil }
58
58
func (tx * ArbitrumUnsignedTx ) data () []byte { return tx .Data }
59
59
func (tx * ArbitrumUnsignedTx ) gas () uint64 { return tx .Gas }
60
- func (tx * ArbitrumUnsignedTx ) gasPrice () * big.Int { return tx .GasPrice }
61
- func (tx * ArbitrumUnsignedTx ) gasTipCap () * big.Int { return tx . GasPrice }
62
- func (tx * ArbitrumUnsignedTx ) gasFeeCap () * big.Int { return tx .GasPrice }
60
+ func (tx * ArbitrumUnsignedTx ) gasPrice () * big.Int { return tx .GasFeeCap }
61
+ func (tx * ArbitrumUnsignedTx ) gasTipCap () * big.Int { return bigZero }
62
+ func (tx * ArbitrumUnsignedTx ) gasFeeCap () * big.Int { return tx .GasFeeCap }
63
63
func (tx * ArbitrumUnsignedTx ) value () * big.Int { return tx .Value }
64
64
func (tx * ArbitrumUnsignedTx ) nonce () uint64 { return tx .Nonce }
65
65
func (tx * ArbitrumUnsignedTx ) to () * common.Address { return tx .To }
@@ -78,11 +78,11 @@ type ArbitrumContractTx struct {
78
78
RequestId common.Hash
79
79
From common.Address
80
80
81
- GasPrice * big.Int // wei per gas
82
- Gas uint64 // gas limit
83
- To * common.Address `rlp:"nil"` // nil means contract creation
84
- Value * big.Int // wei amount
85
- Data []byte // contract invocation input data
81
+ GasFeeCap * big.Int // wei per gas
82
+ Gas uint64 // gas limit
83
+ To * common.Address `rlp:"nil"` // nil means contract creation
84
+ Value * big.Int // wei amount
85
+ Data []byte // contract invocation input data
86
86
}
87
87
88
88
func (tx * ArbitrumContractTx ) txType () byte { return ArbitrumContractTxType }
@@ -91,7 +91,7 @@ func (tx *ArbitrumContractTx) copy() TxData {
91
91
cpy := & ArbitrumContractTx {
92
92
ChainId : new (big.Int ),
93
93
RequestId : tx .RequestId ,
94
- GasPrice : new (big.Int ),
94
+ GasFeeCap : new (big.Int ),
95
95
Gas : tx .Gas ,
96
96
From : tx .From ,
97
97
To : nil ,
@@ -101,8 +101,8 @@ func (tx *ArbitrumContractTx) copy() TxData {
101
101
if tx .ChainId != nil {
102
102
cpy .ChainId .Set (tx .ChainId )
103
103
}
104
- if tx .GasPrice != nil {
105
- cpy .GasPrice .Set (tx .GasPrice )
104
+ if tx .GasFeeCap != nil {
105
+ cpy .GasFeeCap .Set (tx .GasFeeCap )
106
106
}
107
107
if tx .To != nil {
108
108
tmp := * tx .To
@@ -118,9 +118,9 @@ func (tx *ArbitrumContractTx) chainID() *big.Int { return tx.ChainId }
118
118
func (tx * ArbitrumContractTx ) accessList () AccessList { return nil }
119
119
func (tx * ArbitrumContractTx ) data () []byte { return tx .Data }
120
120
func (tx * ArbitrumContractTx ) gas () uint64 { return tx .Gas }
121
- func (tx * ArbitrumContractTx ) gasPrice () * big.Int { return tx .GasPrice }
122
- func (tx * ArbitrumContractTx ) gasTipCap () * big.Int { return tx . GasPrice }
123
- func (tx * ArbitrumContractTx ) gasFeeCap () * big.Int { return tx .GasPrice }
121
+ func (tx * ArbitrumContractTx ) gasPrice () * big.Int { return tx .GasFeeCap }
122
+ func (tx * ArbitrumContractTx ) gasTipCap () * big.Int { return bigZero }
123
+ func (tx * ArbitrumContractTx ) gasFeeCap () * big.Int { return tx .GasFeeCap }
124
124
func (tx * ArbitrumContractTx ) value () * big.Int { return tx .Value }
125
125
func (tx * ArbitrumContractTx ) nonce () uint64 { return 0 }
126
126
func (tx * ArbitrumContractTx ) to () * common.Address { return tx .To }
@@ -135,35 +135,35 @@ type ArbitrumRetryTx struct {
135
135
Nonce uint64
136
136
From common.Address
137
137
138
- GasPrice * big.Int // wei per gas
139
- Gas uint64 // gas limit
140
- To * common.Address `rlp:"nil"` // nil means contract creation
141
- Value * big.Int // wei amount
142
- Data []byte // contract invocation input data
143
- TicketId common.Hash
144
- RefundTo common.Address
138
+ GasFeeCap * big.Int // wei per gas
139
+ Gas uint64 // gas limit
140
+ To * common.Address `rlp:"nil"` // nil means contract creation
141
+ Value * big.Int // wei amount
142
+ Data []byte // contract invocation input data
143
+ TicketId common.Hash
144
+ RefundTo common.Address
145
145
}
146
146
147
147
func (tx * ArbitrumRetryTx ) txType () byte { return ArbitrumRetryTxType }
148
148
149
149
func (tx * ArbitrumRetryTx ) copy () TxData {
150
150
cpy := & ArbitrumRetryTx {
151
- ChainId : new (big.Int ),
152
- Nonce : tx .Nonce ,
153
- GasPrice : new (big.Int ),
154
- Gas : tx .Gas ,
155
- From : tx .From ,
156
- To : nil ,
157
- Value : new (big.Int ),
158
- Data : common .CopyBytes (tx .Data ),
159
- TicketId : tx .TicketId ,
160
- RefundTo : tx .RefundTo ,
151
+ ChainId : new (big.Int ),
152
+ Nonce : tx .Nonce ,
153
+ GasFeeCap : new (big.Int ),
154
+ Gas : tx .Gas ,
155
+ From : tx .From ,
156
+ To : nil ,
157
+ Value : new (big.Int ),
158
+ Data : common .CopyBytes (tx .Data ),
159
+ TicketId : tx .TicketId ,
160
+ RefundTo : tx .RefundTo ,
161
161
}
162
162
if tx .ChainId != nil {
163
163
cpy .ChainId .Set (tx .ChainId )
164
164
}
165
- if tx .GasPrice != nil {
166
- cpy .GasPrice .Set (tx .GasPrice )
165
+ if tx .GasFeeCap != nil {
166
+ cpy .GasFeeCap .Set (tx .GasFeeCap )
167
167
}
168
168
if tx .To != nil {
169
169
tmp := * tx .To
@@ -179,9 +179,9 @@ func (tx *ArbitrumRetryTx) chainID() *big.Int { return tx.ChainId }
179
179
func (tx * ArbitrumRetryTx ) accessList () AccessList { return nil }
180
180
func (tx * ArbitrumRetryTx ) data () []byte { return tx .Data }
181
181
func (tx * ArbitrumRetryTx ) gas () uint64 { return tx .Gas }
182
- func (tx * ArbitrumRetryTx ) gasPrice () * big.Int { return tx .GasPrice }
183
- func (tx * ArbitrumRetryTx ) gasTipCap () * big.Int { return tx . GasPrice }
184
- func (tx * ArbitrumRetryTx ) gasFeeCap () * big.Int { return tx .GasPrice }
182
+ func (tx * ArbitrumRetryTx ) gasPrice () * big.Int { return tx .GasFeeCap }
183
+ func (tx * ArbitrumRetryTx ) gasTipCap () * big.Int { return bigZero }
184
+ func (tx * ArbitrumRetryTx ) gasFeeCap () * big.Int { return tx .GasFeeCap }
185
185
func (tx * ArbitrumRetryTx ) value () * big.Int { return tx .Value }
186
186
func (tx * ArbitrumRetryTx ) nonce () uint64 { return tx .Nonce }
187
187
func (tx * ArbitrumRetryTx ) to () * common.Address { return tx .To }
@@ -197,7 +197,7 @@ type ArbitrumSubmitRetryableTx struct {
197
197
From common.Address
198
198
199
199
DepositValue * big.Int
200
- GasPrice * big.Int // wei per gas
200
+ GasFeeCap * big.Int // wei per gas
201
201
Gas uint64 // gas limit
202
202
To * common.Address `rlp:"nil"` // nil means contract creation
203
203
Value * big.Int // wei amount
@@ -214,7 +214,7 @@ func (tx *ArbitrumSubmitRetryableTx) copy() TxData {
214
214
ChainId : new (big.Int ),
215
215
RequestId : tx .RequestId ,
216
216
DepositValue : new (big.Int ),
217
- GasPrice : new (big.Int ),
217
+ GasFeeCap : new (big.Int ),
218
218
Gas : tx .Gas ,
219
219
From : tx .From ,
220
220
To : tx .To ,
@@ -230,8 +230,8 @@ func (tx *ArbitrumSubmitRetryableTx) copy() TxData {
230
230
if tx .DepositValue != nil {
231
231
cpy .DepositValue .Set (tx .DepositValue )
232
232
}
233
- if tx .GasPrice != nil {
234
- cpy .GasPrice .Set (tx .GasPrice )
233
+ if tx .GasFeeCap != nil {
234
+ cpy .GasFeeCap .Set (tx .GasFeeCap )
235
235
}
236
236
if tx .To != nil {
237
237
tmp := * tx .To
@@ -250,9 +250,9 @@ func (tx *ArbitrumSubmitRetryableTx) chainID() *big.Int { return tx.ChainId
250
250
func (tx * ArbitrumSubmitRetryableTx ) accessList () AccessList { return nil }
251
251
func (tx * ArbitrumSubmitRetryableTx ) data () []byte { return tx .Data }
252
252
func (tx * ArbitrumSubmitRetryableTx ) gas () uint64 { return tx .Gas }
253
- func (tx * ArbitrumSubmitRetryableTx ) gasPrice () * big.Int { return tx .GasPrice }
254
- func (tx * ArbitrumSubmitRetryableTx ) gasTipCap () * big.Int { return tx . GasPrice }
255
- func (tx * ArbitrumSubmitRetryableTx ) gasFeeCap () * big.Int { return tx .GasPrice }
253
+ func (tx * ArbitrumSubmitRetryableTx ) gasPrice () * big.Int { return tx .GasFeeCap }
254
+ func (tx * ArbitrumSubmitRetryableTx ) gasTipCap () * big.Int { return big . NewInt ( 0 ) }
255
+ func (tx * ArbitrumSubmitRetryableTx ) gasFeeCap () * big.Int { return tx .GasFeeCap }
256
256
func (tx * ArbitrumSubmitRetryableTx ) value () * big.Int { return tx .Value }
257
257
func (tx * ArbitrumSubmitRetryableTx ) nonce () uint64 { return 0 }
258
258
func (tx * ArbitrumSubmitRetryableTx ) to () * common.Address { return tx .To }
0 commit comments