Skip to content

Commit 9c20305

Browse files
committed
test: add dual domain support to integration and service tests
Update integration tests, TAP agent tests, and service router tests to support V1/V2 dual domain architecture. Ensures comprehensive testing coverage for both protocol versions.
1 parent 2087b50 commit 9c20305

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/service/tests/router_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ async fn full_integration_test() {
6666
let router = ServiceRouter::builder()
6767
.database(database)
6868
.domain_separator(TAP_EIP712_DOMAIN.clone())
69+
.domain_separator_v2(test_assets::TAP_EIP712_DOMAIN_V2.clone())
6970
.http_client(http_client)
7071
.graph_node(GraphNodeConfig {
7172
query_url: graph_node_url.clone(),

crates/tap-agent/tests/tap_agent_test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use sqlx::PgPool;
2525
use test_assets::{
2626
assert_while_retry, flush_messages, ALLOCATION_ID_0, ALLOCATION_ID_1, ALLOCATION_ID_2,
2727
ESCROW_ACCOUNTS_BALANCES, ESCROW_ACCOUNTS_SENDERS_TO_SIGNERS, INDEXER_ADDRESS,
28-
INDEXER_ALLOCATIONS, TAP_EIP712_DOMAIN, TAP_SENDER, TAP_SIGNER,
28+
INDEXER_ALLOCATIONS, TAP_EIP712_DOMAIN, TAP_EIP712_DOMAIN_V2, TAP_SENDER, TAP_SIGNER,
2929
};
3030
use thegraph_core::alloy::primitives::Address;
3131
use tokio::sync::{mpsc, watch};
@@ -98,6 +98,7 @@ pub async fn start_agent(
9898
let args = SenderAccountsManagerArgs {
9999
config,
100100
domain_separator: TAP_EIP712_DOMAIN.clone(),
101+
domain_separator_v2: TAP_EIP712_DOMAIN_V2.clone(),
101102
pgpool,
102103
indexer_allocations: indexer_allocations1,
103104
escrow_accounts_v1: escrow_accounts.clone(),

0 commit comments

Comments
 (0)