diff --git a/packages/upload-api/src/blob/accept.js b/packages/upload-api/src/blob/accept.js index 6e2d31b7a..c1bd35d5c 100644 --- a/packages/upload-api/src/blob/accept.js +++ b/packages/upload-api/src/blob/accept.js @@ -1,3 +1,5 @@ +import * as Link from 'multiformats/link' +import * as CAR from '@ucanto/transport/car' import * as Server from '@ucanto/server' import * as DID from '@ipld/dag-ucan/did' import * as W3sBlob from '@web3-storage/capabilities/web3.storage/blob' @@ -50,7 +52,7 @@ export function blobAcceptProvider(context) { audience: DID.parse(space), with: context.id.toDIDKey(), nb: { - content: { digest: digest.bytes }, + content: Link.create(CAR.codec.code, digest), location: [createUrl.ok], }, expiration: Infinity,