@@ -7,7 +7,6 @@ import { BundlerSwitcher } from '../../services/bundlers/bundlerSwitcher'
7
7
import { AccountOp } from '../accountOp/accountOp'
8
8
import { TokenResult } from '../portfolio'
9
9
import { ambireEstimateGas } from './ambireEstimation'
10
- import { estimateEachCallSeparately } from './callGasUsedEstimation'
11
10
import { bundlerEstimate } from './estimateBundler'
12
11
import { estimateWithRetries } from './estimateWithRetries'
13
12
import { FullEstimation , FullEstimationSummary } from './interfaces'
@@ -60,12 +59,11 @@ export async function getEstimation(
60
59
network ,
61
60
feeTokens
62
61
)
63
- const perCallEstimation = estimateEachCallSeparately ( baseAcc , op , network , provider )
64
62
65
63
const estimations = await estimateWithRetries <
66
64
[ FullEstimation [ 'ambire' ] , FullEstimation [ 'bundler' ] , FullEstimation [ 'provider' ] ]
67
65
> (
68
- ( ) => [ ambireEstimation , bundlerEstimation , providerEstimation , perCallEstimation ] ,
66
+ ( ) => [ ambireEstimation , bundlerEstimation , providerEstimation ] ,
69
67
'estimation-deployless' ,
70
68
errorCallback ,
71
69
12000
@@ -83,7 +81,7 @@ export async function getEstimation(
83
81
flags : { }
84
82
}
85
83
86
- const criticalError = baseAcc . getEstimationCriticalError ( fullEstimation )
84
+ const criticalError = baseAcc . getEstimationCriticalError ( fullEstimation , op )
87
85
if ( criticalError ) return criticalError
88
86
89
87
// TODO: if the bundler is the preferred method of estimation, re-estimate
0 commit comments