Skip to content

Commit 0f9cf80

Browse files
committed
remove unused fn
1 parent 061647e commit 0f9cf80

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

universalClient/chains/common/event_processor.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -338,30 +338,6 @@ func (ep *EventProcessor) base58ToHex(base58Str string) (string, error) {
338338
return "0x" + hex.EncodeToString(decoded), nil
339339
}
340340

341-
// extractTxIDFromEvent extracts the txID from an Event's event data
342-
func (ep *EventProcessor) extractTxIDFromEvent(event *store.Event) (string, error) {
343-
if event == nil {
344-
return "", fmt.Errorf("event is nil")
345-
}
346-
347-
if len(event.EventData) == 0 {
348-
return "", fmt.Errorf("event data is empty")
349-
}
350-
351-
// Parse event data JSON to extract tx_id
352-
var eventData map[string]interface{}
353-
if err := json.Unmarshal(event.EventData, &eventData); err != nil {
354-
return "", fmt.Errorf("failed to unmarshal event data: %w", err)
355-
}
356-
357-
txID, ok := eventData["tx_id"].(string)
358-
if !ok || txID == "" {
359-
return "", fmt.Errorf("tx_id not found or invalid in event data")
360-
}
361-
362-
return txID, nil
363-
}
364-
365341
// extractOutboundIDs extracts both txID and universalTxID from an outbound Event's event data
366342
func (ep *EventProcessor) extractOutboundIDs(event *store.Event) (txID string, utxID string, err error) {
367343
if event == nil {

0 commit comments

Comments
 (0)