Skip to content

stringErrorEquals

stringErrorEquals(error, expected): boolean

Defined in: packages/synapse-core/src/utils/contract-errors.ts:42

Check if the error message equals the expected string

ParameterType
errorunknown
expectedStringErrorType

boolean