From 2fffff607efb2c7d29d06ee68f1594a748a69db5 Mon Sep 17 00:00:00 2001 From: bigq Date: Fri, 21 Jul 2023 16:39:39 +0200 Subject: [PATCH] feat: use v0.0.20 of react package + add root registry error --- front/package.json | 2 +- front/src/app/page.tsx | 8 ++++++++ front/yarn.lock | 18 +++++++++--------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/front/package.json b/front/package.json index 21e9e0c..336cb36 100644 --- a/front/package.json +++ b/front/package.json @@ -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", diff --git a/front/src/app/page.tsx b/front/src/app/page.tsx index 5a220bb..c52ed2e 100644 --- a/front/src/app/page.tsx +++ b/front/src/app/page.tsx @@ -184,6 +184,14 @@ export default function Home() { dev" command and try again, it will automatically deploy a new contract for you!

)} + {claimError.includes("RegistryRootNotAvailable") && ( +

+ 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" > "advanced" > "clear activity and + nonce data" to not encounter nonce errors after restart. +

+ )} {claimError.slice(0, 16) === "Please switch to" && ( )} diff --git a/front/yarn.lock b/front/yarn.lock index ba66268..cce24ca 100644 --- a/front/yarn.lock +++ b/front/yarn.lock @@ -2010,22 +2010,22 @@ "@noble/hashes" "~1.3.0" "@scure/base" "~1.1.0" -"@sismo-core/sismo-connect-client@0.0.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/sismo-connect-client@0.0.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/sismo-connect-react@0.0.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/sismo-connect-react@0.0.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"