From a51694efe52225e568a9b7a525b97c3c74953f02 Mon Sep 17 00:00:00 2001 From: Jorge Sanmiguel <8038323+jsanmigimeno@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:13:14 +0000 Subject: [PATCH] fix: LZ messageIdentifier storage --- src/collector/layer-zero/layer-zero.worker.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/collector/layer-zero/layer-zero.worker.ts b/src/collector/layer-zero/layer-zero.worker.ts index ff8e0cf..efa0f61 100644 --- a/src/collector/layer-zero/layer-zero.worker.ts +++ b/src/collector/layer-zero/layer-zero.worker.ts @@ -396,8 +396,9 @@ class LayerZeroWorker { const transactionBlockNumber = await this.resolver.getTransactionBlockNumber(log.blockNumber); + const messageIdentifier = '0x' + decodedMessage.messageIdentifier; const ambMessage: AMBMessage = { - messageIdentifier: '0x' + decodedMessage.messageIdentifier, + messageIdentifier, amb: 'layer-zero', fromChainId: srcEidMapped.toString(), @@ -428,14 +429,14 @@ class LayerZeroWorker { 'layer-zero', payloadHash.toLowerCase(), { - messageIdentifier: decodedMessage.messageIdentifier, + messageIdentifier, payload: encodedPayload }, ); this.logger.info( { - messageIdentifier: decodedMessage.messageIdentifier, + messageIdentifier, transactionHash: log.transactionHash, payloadHash },