• Kelvin Fichter's avatar
    feat(sdk): add fn to wait for message status · b66e3131
    Kelvin Fichter authored
    Adds a function to the SDK (waitForMessageStatus) which will wait until
    the status of a particular message matches the target status.
    waitForMessageStatus also handles certain special cases where different
    status messages are incompatible (e.g., the RELAYED and
    FAILED_L1_TO_L2_MESSAGE status for L1 to L2 messages). Useful to avoid
    including looping logic in your own application.
    b66e3131
bridged-tokens.spec.ts 6.34 KB