Skip to content

Commit

Permalink
Fix no-non-null-assertion (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M authored Apr 5, 2023
1 parent 3cddf1d commit f5d4d22
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f5d4d22

Please sign in to comment.