diff --git a/packages/sdk/src/utils/index.ts b/packages/sdk/src/utils/index.ts index 795fce3b..dc67631e 100644 --- a/packages/sdk/src/utils/index.ts +++ b/packages/sdk/src/utils/index.ts @@ -293,7 +293,7 @@ export const splitInscriptionId = (inscriptionId: string) => { throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`) } const indexNum = Number(index) - if (Number.isNaN(indexNum) || indexNum < 0 || index !== "") { + if (Number.isNaN(indexNum) || indexNum < 0 || index === "") { throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`) }