• Map a contract/simulation revert to its typed MusdError. Matches on the distinctive substring of each verified reason (ground-truth §11), case-insensitive. Unrecognized → ContractCallFailed (raw reason + original error preserved; never swallowed).

    Parameters

    • error: unknown
    • Optionalcontext: RevertContext

    Returns Error