@@ -149,7 +149,7 @@ pub struct AccessListTransaction {
149
149
pub chain_id : U256 ,
150
150
pub nonce : U256 ,
151
151
pub gas_price : U256 ,
152
- pub gas_limit : U256 ,
152
+ pub gas : U256 ,
153
153
pub to : ToAddress ,
154
154
pub value : U256 ,
155
155
pub data : Bytes ,
@@ -165,8 +165,7 @@ struct AccessListTransactionHelper {
165
165
pub chain_id : U256 ,
166
166
pub nonce : U256 ,
167
167
pub gas_price : U256 ,
168
- #[ serde( rename( deserialize = "gas" ) ) ]
169
- pub gas_limit : U256 ,
168
+ pub gas : U256 ,
170
169
pub to : ToAddress ,
171
170
pub value : U256 ,
172
171
#[ serde( rename( deserialize = "input" ) ) ]
@@ -185,7 +184,7 @@ impl Into<AccessListTransaction> for AccessListTransactionHelper {
185
184
chain_id : self . chain_id ,
186
185
nonce : self . nonce ,
187
186
gas_price : self . gas_price ,
188
- gas_limit : self . gas_limit ,
187
+ gas : self . gas ,
189
188
to : self . to ,
190
189
value : self . value ,
191
190
data : self . data . 0 ,
@@ -205,7 +204,7 @@ pub struct EIP1559Transaction {
205
204
pub nonce : U256 ,
206
205
pub max_priority_fee_per_gas : U256 ,
207
206
pub max_fee_per_gas : U256 ,
208
- pub gas_limit : U256 ,
207
+ pub gas : U256 ,
209
208
pub to : ToAddress ,
210
209
pub value : U256 ,
211
210
pub data : Bytes ,
@@ -222,8 +221,7 @@ struct EIP1559TransactionHelper {
222
221
pub nonce : U256 ,
223
222
pub max_priority_fee_per_gas : U256 ,
224
223
pub max_fee_per_gas : U256 ,
225
- #[ serde( rename( deserialize = "gas" ) ) ]
226
- pub gas_limit : U256 ,
224
+ pub gas : U256 ,
227
225
pub to : ToAddress ,
228
226
pub value : U256 ,
229
227
#[ serde( rename( deserialize = "input" ) ) ]
@@ -243,7 +241,7 @@ impl Into<EIP1559Transaction> for EIP1559TransactionHelper {
243
241
nonce : self . nonce ,
244
242
max_priority_fee_per_gas : self . max_priority_fee_per_gas ,
245
243
max_fee_per_gas : self . max_fee_per_gas ,
246
- gas_limit : self . gas_limit ,
244
+ gas : self . gas ,
247
245
to : self . to ,
248
246
value : self . value ,
249
247
data : self . data . 0 ,
0 commit comments