@grainlify/contracts-sdk / parseContractError
parseContractError(
error):ContractError
Defined in: src/errors.ts:300
Parse a contract error from a Soroban response by matching the error message. Falls back to a generic ContractError when no pattern matches.
Checks are ordered from most-specific to least-specific so that the more descriptive min/max messages are matched before the generic INVALID_AMOUNT fallback.
any