Function decodeAndReorderLogArgs

  • Decodes an event log and reorders the arguments to match the original ABI order. This is necessary because viem's decodeEventLog reorders indexed parameters to the front.

    Parameters

    • event: AbiEvent

      The event ABI definition

    • log: Log

      The log to decode

    Returns EventLog

    The decoded log with arguments in the original ABI order