Skip to content

Commit

Permalink
fix: LZ messageIdentifier storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanmigimeno committed Jul 18, 2024
1 parent 6e3d5a0 commit a51694e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/collector/layer-zero/layer-zero.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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
},
Expand Down

0 comments on commit a51694e

Please sign in to comment.