@@ -36,7 +36,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
3636 require .NoError (t , GetWalletLedger (db , userAddressB ).Record (userAccountIDB , "usdc" , decimal .NewFromInt (200 )))
3737
3838 capturedNotifications := make (map [string ][]Notification )
39- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
39+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
4040
4141 capturedNotifications [userID ] = append (capturedNotifications [userID ], Notification {
4242 userID : userID ,
@@ -117,7 +117,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
117117 require .NoError (t , db .Create (& SignerWallet {Signer : userAddressA .Hex (), Wallet : userAddressA .Hex ()}).Error )
118118 require .NoError (t , GetWalletLedger (db , userAddressA ).Record (userAccountIDA , "usdc" , decimal .NewFromInt (50 ))) // Not enough
119119
120- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
120+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
121121 params := & CreateAppSessionParams {
122122 Definition : AppDefinition {
123123 Protocol : "test-proto" ,
@@ -148,7 +148,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
148148 Status : ChannelStatusChallenged ,
149149 }).Error )
150150
151- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
151+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
152152 params := & CreateAppSessionParams {
153153 Definition : AppDefinition {
154154 Protocol : "test-proto" ,
@@ -175,7 +175,7 @@ func TestAppSessionService_CreateApplication(t *testing.T) {
175175 require .NoError (t , db .Create (& SignerWallet {Signer : userAddressA .Hex (), Wallet : userAddressA .Hex ()}).Error )
176176 require .NoError (t , GetWalletLedger (db , userAddressA ).Record (userAccountIDA , "usdc" , decimal .NewFromInt (100 )))
177177
178- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
178+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
179179 params := & CreateAppSessionParams {
180180 Definition : AppDefinition {
181181 Protocol : "test-proto" ,
@@ -208,7 +208,7 @@ func TestAppSessionService_SubmitAppState(t *testing.T) {
208208 db , cleanup := setupTestDB (t )
209209 defer cleanup ()
210210
211- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
211+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
212212 session := & AppSession {
213213 SessionID : "test-session" ,
214214 Protocol : "test-proto" ,
@@ -258,7 +258,7 @@ func TestAppSessionService_SubmitAppState(t *testing.T) {
258258 db , cleanup := setupTestDB (t )
259259 defer cleanup ()
260260
261- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
261+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
262262 session := & AppSession {
263263 SessionID : "test-session-negative" ,
264264 Protocol : "test-proto" ,
@@ -307,8 +307,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
307307 defer cleanup ()
308308
309309 capturedNotifications := make (map [string ][]Notification )
310- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
311-
310+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
312311 capturedNotifications [userID ] = append (capturedNotifications [userID ], Notification {
313312 userID : userID ,
314313 eventType : EventType (method ),
@@ -395,7 +394,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
395394 defer cleanup ()
396395
397396 capturedNotifications := make (map [string ][]Notification )
398- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {
397+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {
399398
400399 capturedNotifications [userID ] = append (capturedNotifications [userID ], Notification {
401400 userID : userID ,
@@ -457,7 +456,7 @@ func TestAppSessionService_CloseApplication(t *testing.T) {
457456 db , cleanup := setupTestDB (t )
458457 defer cleanup ()
459458
460- service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params ... any ) {}, nil ))
459+ service := NewAppSessionService (db , NewWSNotifier (func (userID string , method string , params RPCDataParams ) {}, nil ))
461460 session := & AppSession {
462461 SessionID : "test-session-close-negative" ,
463462 Protocol : "test-proto" ,
0 commit comments