Skip to content

Commit

Permalink
refactor: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vasco Santos <[email protected]>
  • Loading branch information
Alan Shaw and vasco-santos authored May 15, 2024
1 parent 44dbaa4 commit 5b9d184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/w3up-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async function backend(did: string) {

// Create a delegation for a specific DID
const audience = DID.parse(did);
const abilities = ['blob/add', 'index/add', 'upload/add'];
const abilities = ['blob/add', 'index/add', 'filecoin/offer', 'upload/add'];
const expiration = Math.floor(Date.now() / 1000) + 60 * 60 * 24; // 24 hours from now
const delegation = await client.createDelegation(audience, abilities, {
expiration,
Expand Down

0 comments on commit 5b9d184

Please sign in to comment.