@@ -186,7 +186,7 @@ func (h *Handler) GetEvent(ctx context.Context, params oas.GetEventParams) (*oas
186
186
if err != nil {
187
187
return nil , toError (http .StatusInternalServerError , err )
188
188
}
189
- result := bath .EnrichWithIntentions (trace , actions )
189
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
190
190
event , err := h .toEvent (ctx , trace , result , params .AcceptLanguage )
191
191
if err != nil {
192
192
return nil , toError (http .StatusInternalServerError , err )
@@ -236,7 +236,7 @@ func (h *Handler) GetAccountEvents(ctx context.Context, params oas.GetAccountEve
236
236
continue
237
237
//return nil, toError(http.StatusInternalServerError, err)
238
238
}
239
- result := bath .EnrichWithIntentions (trace , actions )
239
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
240
240
e , err := h .toAccountEvent (ctx , account .ID , trace , result , params .AcceptLanguage , params .SubjectOnly .Value )
241
241
if err != nil {
242
242
events = append (events , h .toUnknownAccountEvent (account .ID , traceID ))
@@ -263,7 +263,7 @@ func (h *Handler) GetAccountEvents(ctx context.Context, params oas.GetAccountEve
263
263
if err != nil {
264
264
return nil , toError (http .StatusInternalServerError , err )
265
265
}
266
- result := bath .EnrichWithIntentions (trace , actions )
266
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
267
267
event , err := h .toAccountEvent (ctx , account .ID , trace , result , params .AcceptLanguage , params .SubjectOnly .Value )
268
268
if err != nil {
269
269
return nil , toError (http .StatusInternalServerError , err )
@@ -314,7 +314,7 @@ func (h *Handler) GetAccountEvent(ctx context.Context, params oas.GetAccountEven
314
314
if err != nil {
315
315
return nil , toError (http .StatusInternalServerError , err )
316
316
}
317
- result := bath .EnrichWithIntentions (trace , actions )
317
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
318
318
event , err := h .toAccountEvent (ctx , account .ID , trace , result , params .AcceptLanguage , params .SubjectOnly .Value )
319
319
if err != nil {
320
320
return nil , toError (http .StatusInternalServerError , err )
@@ -379,7 +379,7 @@ func (h *Handler) EmulateMessageToAccountEvent(ctx context.Context, request *oas
379
379
if err != nil {
380
380
return nil , toError (http .StatusInternalServerError , err )
381
381
}
382
- result := bath .EnrichWithIntentions (trace , actions )
382
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
383
383
event , err := h .toAccountEvent (ctx , account .ID , trace , result , params .AcceptLanguage , false )
384
384
if err != nil {
385
385
return nil , toError (http .StatusInternalServerError , err )
@@ -431,7 +431,7 @@ func (h *Handler) EmulateMessageToEvent(ctx context.Context, request *oas.Emulat
431
431
if err != nil {
432
432
return nil , toError (http .StatusInternalServerError , err )
433
433
}
434
- result := bath .EnrichWithIntentions (trace , actions )
434
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
435
435
event , err := h .toEvent (ctx , trace , result , params .AcceptLanguage )
436
436
if err != nil {
437
437
return nil , toError (http .StatusInternalServerError , err )
@@ -608,7 +608,7 @@ func (h *Handler) EmulateMessageToWallet(ctx context.Context, request *oas.Emula
608
608
if err != nil {
609
609
return nil , toError (http .StatusInternalServerError , err )
610
610
}
611
- result := bath .EnrichWithIntentions (trace , actions )
611
+ result := bath .EnrichWithIntentions (ctx , trace , actions , h . storage )
612
612
event , err := h .toAccountEvent (ctx , * walletAddress , trace , result , params .AcceptLanguage , true )
613
613
if err != nil {
614
614
return nil , toError (http .StatusInternalServerError , err )
0 commit comments