Skip to content

Commit

Permalink
feat: use v0.0.20 of react package + add root registry error
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e committed Jul 21, 2023
1 parent eb6d08c commit 2fffff6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@rainbow-me/rainbowkit": "^1.0.2",
"@sismo-core/sismo-connect-react": "0.0.18",
"@sismo-core/sismo-connect-react": "0.0.20",
"@types/node": "20.2.3",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
Expand Down
8 changes: 8 additions & 0 deletions front/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ export default function Home() {
dev" command and try again, it will automatically deploy a new contract for you!
</p>
)}
{claimError.includes("RegistryRootNotAvailable") && (
<p style={{ color: "#0BDA51" }}>
If you are developing on a local fork, you should restart your local chain and
your frontend. Your fork needs to be updated with the latest registry root sent
on chain. In metamask, go to "settings" &gt; "advanced" &gt; "clear activity and
nonce data" to not encounter nonce errors after restart.
</p>
)}
{claimError.slice(0, 16) === "Please switch to" && (
<button onClick={() => switchNetworkAsync?.(CHAIN.id)}>Switch chain</button>
)}
Expand Down
18 changes: 9 additions & 9 deletions front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2010,22 +2010,22 @@
"@noble/hashes" "~1.3.0"
"@scure/base" "~1.1.0"

"@sismo-core/[email protected].18":
version "0.0.18"
resolved "https://registry.npmjs.org/@sismo-core/sismo-connect-client/-/sismo-connect-client-0.0.18.tgz#81792b1bfa4f7b52a33fc54441fdaa371f473a0e"
integrity sha512-peZsp6Fm6JSXrzbosfJuFeFNy411TKtLjTM2cT5gP6qZxoWjSu/oqlo7H57DzFiq2ZWhQp/nAVxcD32eheqRyw==
"@sismo-core/[email protected].20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-client/-/sismo-connect-client-0.0.20.tgz#d0337f1e6c678b2e67f0c8dff2794c4a4e869e94"
integrity sha512-2AEfnVGQfhEwWqyTtBF9o2kOlm22cPmM+qG70zyZW+oN169rT9b9MMqM9qkWkknGm6aTPg8wq0dBQUbmaG8DsA==
dependencies:
"@ethersproject/bignumber" "5.7.0"
js-base64 "^3.7.5"
pako "^2.1.0"
viem "^0.3.1"

"@sismo-core/[email protected].18":
version "0.0.18"
resolved "https://registry.npmjs.org/@sismo-core/sismo-connect-react/-/sismo-connect-react-0.0.18.tgz#5a8ac7a44e825eeaf21030bc57a9ab491cc3ab8e"
integrity sha512-IHzUO4u1ZUqkD5q9QysSEwmliyMLltykSNDq0mY4EMSKYflVpuN+hGDq7bN9eEIfFvp6c2a2w9tLUZg49tabpQ==
"@sismo-core/[email protected].20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-react/-/sismo-connect-react-0.0.20.tgz#602c3703d1c7d90c31c17882d3aacb2c8ebeb333"
integrity sha512-8hc4Qh2aaowhGxudeTFA+ZWGb7OLJR7c4ui4VNd+fDqr84extCz2XKIm+tFaFQJTGP/FFGxt/GKAyBSaPGfymw==
dependencies:
"@sismo-core/sismo-connect-client" "0.0.18"
"@sismo-core/sismo-connect-client" "0.0.20"

"@solana/buffer-layout@^4.0.0":
version "4.0.1"
Expand Down

0 comments on commit 2fffff6

Please sign in to comment.