@@ -31,7 +31,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
3131 require .NoError (t , GetWalletLedger (db , userAddressB ).Record (userAccountIDB , "usdc" , decimal .NewFromInt (200 )))
3232
3333 var capturedNotifications []Notification
34- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
34+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
3535 capturedNotifications = append (capturedNotifications , Notification {
3636 userID : userID ,
3737 eventType : EventType (method ),
@@ -111,7 +111,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
111111 require .NoError (t , db .Create (& SignerWallet {Signer : userAddressA .Hex (), Wallet : userAddressA .Hex ()}).Error )
112112 require .NoError (t , GetWalletLedger (db , userAddressA ).Record (userAccountIDA , "usdc" , decimal .NewFromInt (50 ))) // Not enough
113113
114- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
114+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
115115 params := & CreateAppSessionParams {
116116 Definition : AppDefinition {
117117 Protocol : "test-proto" ,
@@ -142,7 +142,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
142142 Status : ChannelStatusChallenged ,
143143 }).Error )
144144
145- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
145+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
146146 params := & CreateAppSessionParams {
147147 Definition : AppDefinition {
148148 Protocol : "test-proto" ,
@@ -169,7 +169,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
169169 require .NoError (t , db .Create (& SignerWallet {Signer : userAddressA .Hex (), Wallet : userAddressA .Hex ()}).Error )
170170 require .NoError (t , GetWalletLedger (db , userAddressA ).Record (userAccountIDA , "usdc" , decimal .NewFromInt (100 )))
171171
172- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
172+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
173173 params := & CreateAppSessionParams {
174174 Definition : AppDefinition {
175175 Protocol : "test-proto" ,
@@ -202,7 +202,7 @@ func TestAppSessionService_SubmitAppState(t *testing.T) {
202202 db , cleanup := setupTestDB (t )
203203 defer cleanup ()
204204
205- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
205+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
206206 session := & AppSession {
207207 SessionID : "test-session" ,
208208 Protocol : "test-proto" ,
@@ -252,7 +252,7 @@ func TestAppSessionService_SubmitAppState(t *testing.T) {
252252 db , cleanup := setupTestDB (t )
253253 defer cleanup ()
254254
255- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
255+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
256256 session := & AppSession {
257257 SessionID : "test-session-negative" ,
258258 Protocol : "test-proto" ,
@@ -301,7 +301,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
301301 defer cleanup ()
302302
303303 var capturedNotifications []Notification
304- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
304+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
305305 capturedNotifications = append (capturedNotifications , Notification {
306306 userID : userID ,
307307 eventType : EventType (method ),
@@ -388,7 +388,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
388388 defer cleanup ()
389389
390390 var capturedNotifications []Notification
391- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
391+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
392392 capturedNotifications = append (capturedNotifications , Notification {
393393 userID : userID ,
394394 eventType : EventType (method ),
@@ -449,7 +449,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
449449 db , cleanup := setupTestDB (t )
450450 defer cleanup ()
451451
452- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
452+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
453453 session := & AppSession {
454454 SessionID : "test-session-close-negative" ,
455455 Protocol : "test-proto" ,
0 commit comments