Skip to main content

Function: decodeLogMessageSendRequested()

decodeLogMessageSendRequested(log): EquitoMessageWithData | undefined

Decodes a MessageSendRequested event log into a EquitoMessageWithData object. This function extracts the message and messageData fields from the event logs using the specified ABI.

Parameters

log: Log

Log The log object containing the non-indexed data (data) and topics (topics) from the transaction log.

Returns

EquitoMessageWithData | undefined

A EquitoMessageWithData object containing the decoded message and message data if exists.

Example

const logData = '0x...';  // Replace with actual log data
const topics = ['0x...', '0x...']; // Replace with actual log topics
const result = decodeLogMessageSendRequested({ data: logData, topics });
console.log('Decoded Message:', result.message);
console.log('Decoded Message Data:', result.messageData);

Defined in

router/decode-log-message-send-requested.ts:24