From 8b514a63b1e9c284b2584faefd1a5330e4cde4c2 Mon Sep 17 00:00:00 2001 From: Jorge Sanmiguel <8038323+jsanmigimeno@users.noreply.github.com> Date: Fri, 19 Jul 2024 10:46:59 +0000 Subject: [PATCH] fix: LayerZero AMBMessage generation --- src/collector/layer-zero/layer-zero.worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collector/layer-zero/layer-zero.worker.ts b/src/collector/layer-zero/layer-zero.worker.ts index efa0f61..a04cd79 100644 --- a/src/collector/layer-zero/layer-zero.worker.ts +++ b/src/collector/layer-zero/layer-zero.worker.ts @@ -403,10 +403,10 @@ class LayerZeroWorker { amb: 'layer-zero', fromChainId: srcEidMapped.toString(), toChainId: dstEidMapped.toString(), - fromIncentivesAddress: packet.sender, + fromIncentivesAddress: '0x' + packet.sender.slice(24), // Keep only the relevant bytes (i.e. discard the first 12 bytes) // toIncentivesAddress: , //TODO - incentivesPayload: '0x' + decodedMessage.message, + incentivesPayload: '0x' + packet.message, transactionBlockNumber,