Skip to content

Commit

Permalink
Complete sender emiter
Browse files Browse the repository at this point in the history
  • Loading branch information
julian merlo authored and julian merlo committed Oct 18, 2024
1 parent f89c8e8 commit 34bfa48
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export const aptosLogMessagePublishedMapper = (
): LogFoundEvent<LogMessagePublished> | undefined => {
const wormholeEvent = transaction.events.find((tx: any) => tx.type.includes(REDEEM_EVENT_TAIL));
const wormholeData = wormholeEvent.data;

const address = transaction.payload.function.split("::")[0];
const sender = `000000000000000000000000000000000000000000000000000000000000000${wormholeData.sender}`;

logger.info(
`[aptos] Source event info: [tx: ${transaction.hash}][VAA: ${CHAIN_ID_APTOS}/${wormholeData.sender}/${wormholeData.sequence}]`
`[aptos] Source event info: [tx: ${transaction.hash}][VAA: ${CHAIN_ID_APTOS}/${sender}/${wormholeData.sequence}]`
);

return {
Expand All @@ -27,7 +27,7 @@ export const aptosLogMessagePublishedMapper = (
blockHeight: transaction.blockHeight,
blockTime: wormholeData.timestamp,
attributes: {
sender: wormholeData.sender,
sender: sender,
sequence: Number(wormholeData.sequence),
payload: wormholeData.payload,
nonce: Number(wormholeData.nonce),
Expand Down

0 comments on commit 34bfa48

Please sign in to comment.