Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return await attachment.client.statusAction(async status => {
const blobId = new Uint8Array(8);
const blobHandle = await attachment.attachmentHandle!.createBlobAsync(
status, transaction.transactionHandle, blobId, 0, undefined);
const blob = new Blob(attachment, blobId);
const blobStream = new BlobStreamImpl(blob, attachment);
blobStream.blobHandle = blobHandle;
return blobStream;
});
}