@@ -8,6 +8,7 @@ use std::{
88 time:: { SystemTime , UNIX_EPOCH } ,
99} ;
1010
11+ use alloy_sol_types:: Eip712Domain ;
1112use anyhow:: { Error , Result } ;
1213use jsonrpsee:: {
1314 core:: { async_trait, client:: ClientT } ,
7273 > RpcManager < EA , RCA , RSA , RAVSA >
7374{
7475 pub fn new (
76+ domain_separator : Eip712Domain ,
7577 escrow_adapter : EA ,
7678 receipt_checks_adapter : RCA ,
7779 receipt_storage_adapter : RSA ,
8486 ) -> Result < Self > {
8587 Ok ( Self {
8688 manager : Arc :: new ( Manager :: < EA , RCA , RSA , RAVSA > :: new (
89+ domain_separator,
8790 escrow_adapter,
8891 receipt_checks_adapter,
8992 rav_storage_adapter,
@@ -166,6 +169,7 @@ pub async fn run_server<
166169 RAVSA : RAVStorageAdapter + Send + Sync + ' static ,
167170> (
168171 port : u16 , // Port on which the server will listen
172+ domain_separator : Eip712Domain , // EIP712 domain separator
169173 escrow_adapter : CA , // EscrowAdapter instance
170174 receipt_checks_adapter : RCA , // ReceiptChecksAdapter instance
171175 receipt_storage_adapter : RSA , // ReceiptStorageAdapter instance
@@ -185,6 +189,7 @@ pub async fn run_server<
185189 let addr = server. local_addr ( ) ?;
186190 println ! ( "Listening on: {}" , addr) ;
187191 let rpc_manager = RpcManager :: new (
192+ domain_separator,
188193 escrow_adapter,
189194 receipt_checks_adapter,
190195 receipt_storage_adapter,
0 commit comments