Skip to content

Commit

Permalink
fix: using the latest client to create spaces (#655)
Browse files Browse the repository at this point in the history
Bump `@storacha/client` version to the lastest one, so we can create
spaces using the new gateway authorization flow.
  • Loading branch information
fforbeck authored Dec 19, 2024
1 parent 53ba26d commit 9e41b36
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 80 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@ucanto/transport": "^9.1.1",
"@web3-storage/access": "^20.0.1",
"@web3-storage/did-mailto": "^2.1.0",
"@storacha/client": "1.0.5"
"@storacha/client": "^1.1.1"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('createClient', async () => {

test('createSpace', async () => {
const { client } = await createClient()
const space = await client.createSpace('test')
const space = await client.createSpace('test', { skipGatewayAuthorization: true })
expect(space).toBeTruthy()
expect(space.did().startsWith('did:key:')).toBe(true)
})
122 changes: 44 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e41b36

Please sign in to comment.