diff --git a/sdk/src/client/bindings/nodejs/test/client/offlineSigningExamples.spec.ts b/sdk/src/client/bindings/nodejs/test/client/offlineSigningExamples.spec.ts index cf13c220ad..d63f58575d 100644 --- a/sdk/src/client/bindings/nodejs/test/client/offlineSigningExamples.spec.ts +++ b/sdk/src/client/bindings/nodejs/test/client/offlineSigningExamples.spec.ts @@ -95,10 +95,14 @@ describe('Offline signing examples', () => { preparedTx.essence, ); + if (preparedTx.inputsData[0].chain === undefined) { + throw 'chain is undefined'; + } + const unlock = await offlineClient.signatureUnlock( secretManager, hexToBytes(txEssenceHash), - preparedTx.inputsData[0].chain!, + preparedTx.inputsData[0].chain, ); expect(unlock).toStrictEqual({