Skip to content

Commit

Permalink
packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Seroxdesign committed Jan 22, 2024
1 parent ac7cb31 commit dac5a60
Show file tree
Hide file tree
Showing 3 changed files with 584 additions and 35 deletions.
3 changes: 2 additions & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@urql/exchange-retry": "^1.2.0",
"@userback/react": "^0.1.4",
"@walletconnect/web3-provider": "1.7.3",
"@web3-storage/access": "^18.1.1",
"@web3-storage/w3up-client": "^12.0.0",
"busboy": "1.6.0",
"chakra-ui-markdown-renderer": "^4.1.0",
Expand Down Expand Up @@ -110,4 +111,4 @@
"node-gyp": "10.0.1",
"better-sqlite3": "9.0.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/web/pages/api/w3up-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const initClient = async () => {
const space = client.spaces().find((s) => s.name === "metagame");
if (!space) {
const proof = parseProof(process.env.NEXT_PUBLIC_WEB3_STORAGE_PROOF || '');
const space = await client.addSpace(proof);
await client.setCurrentSpace(space.did());
const spaceProof = await client.addSpace(proof);
await client.setCurrentSpace(spaceProof.did());
}
return client;
};
Expand Down
Loading

0 comments on commit dac5a60

Please sign in to comment.