Skip to content

Commit

Permalink
fix: address location claim content format
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosa committed May 31, 2024
1 parent 1e05bdc commit a2eeab7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/upload-api/src/blob/accept.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a2eeab7

Please sign in to comment.