@@ -18,7 +18,7 @@ import {
18
18
LinkTokenSource ,
19
19
MockV3AggregatorSource ,
20
20
FunctionsRouterSource ,
21
- MockFunctionsCoordinatorSource ,
21
+ FunctionsCoordinatorTestHelperSource ,
22
22
TermsOfServiceAllowListSource ,
23
23
FunctionsClientExampleSource ,
24
24
} from './v1_contract_sources'
@@ -173,13 +173,9 @@ const handleOracleRequest = async (
173
173
errorHexstring ,
174
174
)
175
175
176
- const transmitters31AddressArray = Array ( 31 ) . fill ( '0x0000000000000000000000000000000000000000' )
177
- simulatedTransmitters . forEach ( ( transmitter , i ) => {
178
- transmitters31AddressArray [ i ] = transmitter
179
- } )
180
176
const reportTx = await mockCoordinator
181
177
. connect ( admin )
182
- . callReport ( encodedReport , transmitters31AddressArray , { gasLimit : callReportGasLimit } )
178
+ . callReport ( encodedReport , { gasLimit : callReportGasLimit } )
183
179
await reportTx . wait ( 1 )
184
180
}
185
181
@@ -288,8 +284,8 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise<Functions
288
284
. deploy ( linkToken . address , simulatedRouterConfig )
289
285
290
286
const mockCoordinatorFactory = new ContractFactory (
291
- MockFunctionsCoordinatorSource . abi ,
292
- MockFunctionsCoordinatorSource . bytecode ,
287
+ FunctionsCoordinatorTestHelperSource . abi ,
288
+ FunctionsCoordinatorTestHelperSource . bytecode ,
293
289
deployer ,
294
290
)
295
291
const mockCoordinator = await mockCoordinatorFactory
@@ -332,7 +328,6 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise<Functions
332
328
. setThresholdPublicKey (
333
329
'0x' + Buffer . from ( simulatedSecretsKeys . thresholdKeys . publicKey ) . toString ( 'hex' ) ,
334
330
)
335
- await mockCoordinator . connect ( deployer ) . setTransmitters ( simulatedTransmitters )
336
331
337
332
return { linkToken, router, mockCoordinator, exampleClient }
338
333
}
0 commit comments