@@ -45,6 +45,7 @@ public class Transaction {
45
45
private List <AccessListObject > accessList ;
46
46
private String maxFeePerBlobGas ;
47
47
private List <String > blobVersionedHashes ;
48
+ private List <Authorization > authorizationList ;
48
49
49
50
public Transaction () {}
50
51
@@ -118,7 +119,9 @@ public Transaction(
118
119
String type ,
119
120
String maxFeePerGas ,
120
121
String maxPriorityFeePerGas ,
121
- List accessList ) {
122
+ List accessList ,
123
+ List <Authorization > authorizationList
124
+ ) {
122
125
this .hash = hash ;
123
126
this .nonce = nonce ;
124
127
this .blockHash = blockHash ;
@@ -142,6 +145,7 @@ public Transaction(
142
145
this .maxFeePerGas = maxFeePerGas ;
143
146
this .maxPriorityFeePerGas = maxPriorityFeePerGas ;
144
147
this .accessList = accessList ;
148
+ this .authorizationList = authorizationList ;
145
149
}
146
150
147
151
public Transaction (
@@ -169,7 +173,9 @@ public Transaction(
169
173
String maxPriorityFeePerGas ,
170
174
List accessList ,
171
175
String maxFeePerBlobGas ,
172
- List versionedHashes ) {
176
+ List versionedHashes ,
177
+ List <Authorization > authorizationList
178
+ ) {
173
179
this .hash = hash ;
174
180
this .nonce = nonce ;
175
181
this .blockHash = blockHash ;
@@ -195,6 +201,7 @@ public Transaction(
195
201
this .accessList = accessList ;
196
202
this .maxFeePerBlobGas = maxFeePerBlobGas ;
197
203
this .blobVersionedHashes = versionedHashes ;
204
+ this .authorizationList = authorizationList ;
198
205
}
199
206
200
207
public void setChainId (String chainId ) {
@@ -357,6 +364,14 @@ public long getV() {
357
364
return v ;
358
365
}
359
366
367
+ public List <Authorization > getAuthorizationList () {
368
+ return authorizationList ;
369
+ }
370
+
371
+ public void setAuthorizationList (List <Authorization > authorizationList ) {
372
+ this .authorizationList = authorizationList ;
373
+ }
374
+
360
375
// Workaround until Geth & Parity return consistent values. At present
361
376
// Parity returns a byte value, Geth returns a hex-encoded string
362
377
// https://github.com/ethereum/go-ethereum/issues/3339
@@ -575,6 +590,10 @@ public boolean equals(Object o) {
575
590
: that .getAccessList () != null ) {
576
591
return false ;
577
592
}
593
+ if (getAuthorizationList () !=null ? !getAuthorizationList ().equals (that .getAuthorizationList ()) :
594
+ that .getAuthorizationList () != null ) {
595
+ return false ;
596
+ }
578
597
return getS () != null ? getS ().equals (that .getS ()) : that .getS () == null ;
579
598
}
580
599
@@ -621,6 +640,7 @@ public int hashCode() {
621
640
? getBlobVersionedHashes ().hashCode ()
622
641
: 0 );
623
642
result = 31 * result + (getAccessList () != null ? getAccessList ().hashCode () : 0 );
643
+ result = 31 * result + (getAuthorizationList () != null ? getAuthorizationList ().hashCode () : 0 );
624
644
return result ;
625
645
}
626
646
}
0 commit comments