File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ export abstract class AbstractSigner<P extends null | Provider = null | Provider
151
151
// The network supports EIP-1559!
152
152
153
153
// Upgrade transaction from null to eip-1559
154
- pop . type = 2 ;
154
+ if ( pop . authorizationList && pop . authorizationList . length ) {
155
+ pop . type = 4 ;
156
+ } else {
157
+ pop . type = 2 ;
158
+ }
155
159
156
160
if ( pop . gasPrice != null ) {
157
161
// Using legacy gasPrice property on an eip-1559 network,
Original file line number Diff line number Diff line change @@ -1191,7 +1191,9 @@ export class Transaction implements TransactionLike<string> {
1191
1191
types . push ( this . type ) ;
1192
1192
1193
1193
} else {
1194
- if ( hasFee ) {
1194
+ if ( this . authorizationList && this . authorizationList . length ) {
1195
+ types . push ( 4 ) ;
1196
+ } else if ( hasFee ) {
1195
1197
types . push ( 2 ) ;
1196
1198
} else if ( hasGasPrice ) {
1197
1199
types . push ( 1 ) ;
You can’t perform that action at this time.
0 commit comments