diff --git a/common/src/indexer_service/http/config.rs b/common/src/indexer_service/http/config.rs index b68198de..e4a7d3ac 100644 --- a/common/src/indexer_service/http/config.rs +++ b/common/src/indexer_service/http/config.rs @@ -36,6 +36,7 @@ pub struct IndexerServiceConfig { pub network_subgraph: SubgraphConfig, pub escrow_subgraph: SubgraphConfig, pub graph_network: GraphNetworkConfig, + pub scalar: ScalarConfig, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -54,3 +55,9 @@ pub struct IndexerConfig { pub indexer_address: Address, pub operator_mnemonic: String, } + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct ScalarConfig { + pub chain_id: u64, + pub receipts_verifier_address: Address, +} diff --git a/common/src/indexer_service/http/indexer_service.rs b/common/src/indexer_service/http/indexer_service.rs index 6776332e..63befe19 100644 --- a/common/src/indexer_service/http/indexer_service.rs +++ b/common/src/indexer_service/http/indexer_service.rs @@ -263,11 +263,11 @@ impl IndexerService { database, allocations, escrow_accounts, - // TODO: arguments for eip712_domain should be a config eip712_domain! { name: "TapManager", version: "1", - verifying_contract: options.config.indexer.indexer_address, + chain_id: options.config.scalar.chain_id, + verifying_contract: options.config.scalar.receipts_verifier_address, }, );