Skip to content

Commit

Permalink
Merge pull request #620 from bandada-infra/ref/improve-client-app
Browse files Browse the repository at this point in the history
Improve client app
  • Loading branch information
vplasencia authored Dec 5, 2024
2 parents fe2c5c7 + c98ef38 commit 61b29a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@fontsource-variable/unbounded": "^5.0.5",
"@semaphore-protocol/identity": "3.10.1",
"@semaphore-protocol/identity": "4.7.0",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"ethers": "^5.4.7",
Expand Down
4 changes: 2 additions & 2 deletions apps/client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function HomePage(): JSX.Element {

const message = `Sign this message to generate your Semaphore identity.`
const identity = new Identity(await signer.signMessage(message))
const identityCommitment = identity.getCommitment().toString()
const identityCommitment = identity.commitment.toString()

const hasJoined = await isGroupMember(
invite.group.id,
Expand Down Expand Up @@ -126,7 +126,7 @@ export default function HomePage(): JSX.Element {

const message = `Sign this message to generate your Semaphore identity.`
const identity = new Identity(await signer.signMessage(message))
const identityCommitment = identity.getCommitment().toString()
const identityCommitment = identity.commitment.toString()

const dashboardUrl = import.meta.env
.VITE_DASHBOARD_URL as DashboardUrl
Expand Down
2 changes: 2 additions & 0 deletions libs/api-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,15 @@ const inviteCode = "C5VAG4HD"
const apiKey = "70f07d0d-6aa2-4fe1-b4b9-06c271a641dc"

const invite = await apiSdk.redeemInvite(inviteCode, groupId, apiKey)
```

## Get credential group join URL

\# **getCredentialGroupJoinUrl**(): _string_

Returns a custom URL string for joining a credential group.

```ts
import { DashboardUrl } from "@bandada/api-sdk"

const dashboardUrl = DashboardUrl.DEV
Expand Down
15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8759,19 +8759,6 @@ __metadata:
languageName: node
linkType: hard

"@semaphore-protocol/identity@npm:3.10.1":
version: 3.10.1
resolution: "@semaphore-protocol/identity@npm:3.10.1"
dependencies:
"@ethersproject/bignumber": "npm:^5.5.0"
"@ethersproject/keccak256": "npm:^5.7.0"
"@ethersproject/random": "npm:^5.5.1"
"@ethersproject/strings": "npm:^5.6.1"
js-sha512: "npm:^0.8.0"
checksum: 10/402344e37770d0cdc14527cf4ceb96376bf5015788e120a043802804deea945d0dabe593036df70c7d76ec9f104faa7f91fc5a2a39e7743e91f7d9cc7b3b894e
languageName: node
linkType: hard

"@semaphore-protocol/identity@npm:3.9.0":
version: 3.9.0
resolution: "@semaphore-protocol/identity@npm:3.9.0"
Expand Down Expand Up @@ -14350,7 +14337,7 @@ __metadata:
"@emotion/react": "npm:^11.10.6"
"@emotion/styled": "npm:^11.10.6"
"@fontsource-variable/unbounded": "npm:^5.0.5"
"@semaphore-protocol/identity": "npm:3.10.1"
"@semaphore-protocol/identity": "npm:4.7.0"
"@types/react": "npm:^18.0.27"
"@types/react-dom": "npm:^18.0.10"
"@vitejs/plugin-react": "npm:^3.1.0"
Expand Down

0 comments on commit 61b29a7

Please sign in to comment.