@@ -17,6 +17,8 @@ const logger = new Logger(version);
17
17
export interface Overrides {
18
18
gasLimit ?: BigNumberish | Promise < BigNumberish > ;
19
19
gasPrice ?: BigNumberish | Promise < BigNumberish > ;
20
+ maxFeePerGas ?: BigNumberish | Promise < BigNumberish > ;
21
+ maxPriorityFeePerGas ?: BigNumberish | Promise < BigNumberish > ;
20
22
nonce ?: BigNumberish | Promise < BigNumberish > ;
21
23
type ?: number ;
22
24
accessList ?: AccessListish ;
@@ -50,6 +52,9 @@ export interface PopulatedTransaction {
50
52
51
53
type ?: number ;
52
54
accessList ?: AccessList ;
55
+
56
+ maxFeePerGas ?: BigNumber ;
57
+ maxPriorityFeePerGas ?: BigNumber ;
53
58
} ;
54
59
55
60
export type EventFilter = {
@@ -101,6 +106,7 @@ export interface ContractTransaction extends TransactionResponse {
101
106
const allowedTransactionKeys : { [ key : string ] : boolean } = {
102
107
chainId : true , data : true , from : true , gasLimit : true , gasPrice :true , nonce : true , to : true , value : true ,
103
108
type : true , accessList : true ,
109
+ maxFeePerGas : true , maxPriorityFeePerGas : true
104
110
}
105
111
106
112
async function resolveName ( resolver : Signer | Provider , nameOrPromise : string | Promise < string > ) : Promise < string > {
@@ -216,6 +222,8 @@ async function populateTransaction(contract: Contract, fragment: FunctionFragmen
216
222
if ( ro . nonce != null ) { tx . nonce = BigNumber . from ( ro . nonce ) . toNumber ( ) ; }
217
223
if ( ro . gasLimit != null ) { tx . gasLimit = BigNumber . from ( ro . gasLimit ) ; }
218
224
if ( ro . gasPrice != null ) { tx . gasPrice = BigNumber . from ( ro . gasPrice ) ; }
225
+ if ( ro . maxFeePerGas != null ) { tx . maxFeePerGas = BigNumber . from ( ro . maxFeePerGas ) ; }
226
+ if ( ro . maxPriorityFeePerGas != null ) { tx . maxPriorityFeePerGas = BigNumber . from ( ro . maxPriorityFeePerGas ) ; }
219
227
if ( ro . from != null ) { tx . from = ro . from ; }
220
228
221
229
if ( ro . type != null ) { tx . type = ro . type ; }
@@ -259,6 +267,9 @@ async function populateTransaction(contract: Contract, fragment: FunctionFragmen
259
267
delete overrides . type ;
260
268
delete overrides . accessList ;
261
269
270
+ delete overrides . maxFeePerGas ;
271
+ delete overrides . maxPriorityFeePerGas ;
272
+
262
273
// Make sure there are no stray overrides, which may indicate a
263
274
// typo or using an unsupported key.
264
275
const leftovers = Object . keys ( overrides ) . filter ( ( key ) => ( ( < any > overrides ) [ key ] != null ) ) ;
@@ -693,7 +704,7 @@ export class BaseContract {
693
704
// Check that the signature is unique; if not the ABI generation has
694
705
// not been cleaned or may be incorrectly generated
695
706
if ( uniqueSignatures [ signature ] ) {
696
- logger . warn ( `Duplicate ABI entry for ${ JSON . stringify ( name ) } ` ) ;
707
+ logger . warn ( `Duplicate ABI entry for ${ JSON . stringify ( signature ) } ` ) ;
697
708
return ;
698
709
}
699
710
uniqueSignatures [ signature ] = true ;
0 commit comments