@@ -346,26 +346,6 @@ function getGasStationPlugin(url: string) {
346
346
} ) ;
347
347
}
348
348
349
- // Used by Optimism for a custom priority fee
350
- function getPriorityFeePlugin ( maxPriorityFeePerGas : bigint ) {
351
- return new FetchUrlFeeDataNetworkPlugin ( "data:" , async ( fetchFeeData , provider , request ) => {
352
- const feeData = await fetchFeeData ( ) ;
353
-
354
- // This should always fail
355
- if ( feeData . maxFeePerGas == null || feeData . maxPriorityFeePerGas == null ) {
356
- return feeData ;
357
- }
358
-
359
- // Compute the corrected baseFee to recompute the updated values
360
- const baseFee = feeData . maxFeePerGas - feeData . maxPriorityFeePerGas ;
361
- return {
362
- gasPrice : feeData . gasPrice ,
363
- maxFeePerGas : ( baseFee + maxPriorityFeePerGas ) ,
364
- maxPriorityFeePerGas
365
- } ;
366
- } ) ;
367
- }
368
-
369
349
// See: https://chainlist.org
370
350
let injected = false ;
371
351
function injectCommonNetworks ( ) : void {
@@ -409,10 +389,10 @@ function injectCommonNetworks(): void {
409
389
registerEth ( "kovan" , 42 , { ensNetwork : 42 } ) ;
410
390
registerEth ( "sepolia" , 11155111 , { ensNetwork : 11155111 } ) ;
411
391
412
- registerEth ( "classic" , 61 , { } ) ;
413
- registerEth ( "classicKotti" , 6 , { } ) ;
414
392
415
393
394
+ registerEth ( "classic" , 61 , { } ) ;
395
+ registerEth ( "classicKotti" , 6 , { } ) ;
416
396
417
397
registerEth ( "arbitrum" , 42161 , {
418
398
ensNetwork : 1 ,
@@ -444,9 +424,7 @@ function injectCommonNetworks(): void {
444
424
445
425
registerEth ( "optimism" , 10 , {
446
426
ensNetwork : 1 ,
447
- plugins : [
448
- getPriorityFeePlugin ( BigInt ( "1000000" ) )
449
- ]
427
+ plugins : [ ]
450
428
} ) ;
451
429
registerEth ( "optimism-goerli" , 420 , { } ) ;
452
430
0 commit comments