14
14
15
15
import java .math .BigInteger ;
16
16
import java .util .ArrayList ;
17
+ import java .util .Collections ;
17
18
import java .util .List ;
18
19
20
+ import org .web3j .crypto .AccessListObject ;
19
21
import org .web3j .crypto .Sign ;
20
22
import org .web3j .rlp .RlpList ;
21
23
import org .web3j .rlp .RlpString ;
@@ -44,7 +46,8 @@ public Transaction1559(
44
46
BigInteger value ,
45
47
String data ,
46
48
BigInteger maxPriorityFeePerGas ,
47
- BigInteger maxFeePerGas ) {
49
+ BigInteger maxFeePerGas ,
50
+ List <AccessListObject > accessList ) {
48
51
super (EIP1559 , nonce , null , gasLimit , to , value , data );
49
52
this .chainId = chainId ;
50
53
this .maxPriorityFeePerGas = maxPriorityFeePerGas ;
@@ -103,7 +106,7 @@ public static Transaction1559 createEtherTransaction(
103
106
BigInteger maxPriorityFeePerGas ,
104
107
BigInteger maxFeePerGas ) {
105
108
return new Transaction1559 (
106
- chainId , nonce , gasLimit , to , value , "" , maxPriorityFeePerGas , maxFeePerGas );
109
+ chainId , nonce , gasLimit , to , value , "" , maxPriorityFeePerGas , maxFeePerGas , Collections . emptyList () );
107
110
}
108
111
109
112
public static Transaction1559 createTransaction (
@@ -114,10 +117,11 @@ public static Transaction1559 createTransaction(
114
117
BigInteger value ,
115
118
String data ,
116
119
BigInteger maxPriorityFeePerGas ,
117
- BigInteger maxFeePerGas ) {
120
+ BigInteger maxFeePerGas ,
121
+ List <AccessListObject > accessList ) {
118
122
119
123
return new Transaction1559 (
120
- chainId , nonce , gasLimit , to , value , data , maxPriorityFeePerGas , maxFeePerGas );
124
+ chainId , nonce , gasLimit , to , value , data , maxPriorityFeePerGas , maxFeePerGas , accessList );
121
125
}
122
126
123
127
@ Override
0 commit comments