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
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
error | unknown |
expected | StringErrorType |
Returns
Section titled “Returns”boolean