Skip to content

Commit

Permalink
test: Add new config fields to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar committed Feb 2, 2024
1 parent 65e1d21 commit c30be4f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions tests/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,20 @@ func TestIntegration(t *testing.T) {
txMgr := txmgr.NewSimpleTxManager(ethRpcClient, logger, privateKeySigner, aggregatorAddr)

config := &config.Config{
EcdsaPrivateKey: aggregatorEcdsaPrivateKey,
Logger: logger,
EthHttpRpcUrl: aggConfigRaw.EthRpcUrl,
EthHttpClient: ethRpcClient,
EthWsRpcUrl: aggConfigRaw.EthWsUrl,
EthWsClient: ethWsClient,
OperatorStateRetrieverAddr: common.HexToAddress(sfflDeploymentRaw.Addresses.OperatorStateRetrieverAddr),
SFFLRegistryCoordinatorAddr: common.HexToAddress(sfflDeploymentRaw.Addresses.RegistryCoordinatorAddr),
AggregatorServerIpPortAddr: aggConfigRaw.AggregatorServerIpPortAddr,
RegisterOperatorOnStartup: aggConfigRaw.RegisterOperatorOnStartup,
TxMgr: txMgr,
AggregatorAddress: aggregatorAddr,
EcdsaPrivateKey: aggregatorEcdsaPrivateKey,
Logger: logger,
EthHttpRpcUrl: aggConfigRaw.EthRpcUrl,
EthHttpClient: ethRpcClient,
EthWsRpcUrl: aggConfigRaw.EthWsUrl,
EthWsClient: ethWsClient,
OperatorStateRetrieverAddr: common.HexToAddress(sfflDeploymentRaw.Addresses.OperatorStateRetrieverAddr),
SFFLRegistryCoordinatorAddr: common.HexToAddress(sfflDeploymentRaw.Addresses.RegistryCoordinatorAddr),
AggregatorServerIpPortAddr: aggConfigRaw.AggregatorServerIpPortAddr,
AggregatorRestServerIpPortAddr: aggConfigRaw.AggregatorRestServerIpPortAddr,
AggregatorDatabasePath: aggConfigRaw.AggregatorDatabasePath,
RegisterOperatorOnStartup: aggConfigRaw.RegisterOperatorOnStartup,
TxMgr: txMgr,
AggregatorAddress: aggregatorAddr,
}

/* Prepare the config file for operator */
Expand Down

0 comments on commit c30be4f

Please sign in to comment.