Skip to content

Commit

Permalink
refactor: uploadSingleOwnerChunkData payload param
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed May 31, 2024
1 parent 916fa65 commit e7d2664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chunk/soc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export async function uploadSingleOwnerChunkData(
signer: Signer,
postageBatchId: BatchId | string,
identifier: Identifier,
payload: Uint8Array | Chunk,
payload: Uint8Array | { chunkPayload: Uint8Array; chunkSpan: Bytes<8> },
options?: UploadOptions,
): Promise<Reference> {
assertAddress(postageBatchId)
Expand All @@ -164,7 +164,7 @@ export async function uploadSingleOwnerChunkData(
if (isUint8Array(payload)) {
cac = makeContentAddressedChunk(payload)
} else {
cac = payload
cac = makeContentAddressedChunk(payload.chunkPayload, payload.chunkSpan)
}
const soc = await makeSingleOwnerChunk(cac, identifier, signer)

Expand Down

0 comments on commit e7d2664

Please sign in to comment.