Skip to content

Commit 412c595

Browse files
committed
fix: verification data attaching
1 parent 56b47fb commit 412c595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

universalClient/chains/common/event_processor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ func (ep *EventProcessor) constructInbound(event *store.Event) (*uexecutortypes.
303303
}
304304
}
305305

306-
// Check if VerificationData is 0x and replace with TxHash
307-
if inboundMsg.UniversalPayload != nil && inboundMsg.UniversalPayload.VType == uexecutortypes.VerificationType_universalTxVerification {
306+
// Use event's VerificationData if present, otherwise fall back to txHash
307+
if eventData.VerificationData == "" || eventData.VerificationData == "0x" {
308308
inboundMsg.VerificationData = txHashHex
309309
} else {
310310
inboundMsg.VerificationData = eventData.VerificationData

0 commit comments

Comments
 (0)