From e3482a574ae5db59baaefe02cd8b7fa847780282 Mon Sep 17 00:00:00 2001 From: 0xturboblitz Date: Thu, 20 Jun 2024 15:20:19 -0700 Subject: [PATCH] don't display warning screen for disclose circuit zkey --- app/src/utils/zkeyDownload.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/src/utils/zkeyDownload.ts b/app/src/utils/zkeyDownload.ts index 3401889f9..008693792 100644 --- a/app/src/utils/zkeyDownload.ts +++ b/app/src/utils/zkeyDownload.ts @@ -50,7 +50,7 @@ export async function downloadZkey( const networkInfo = await NetInfo.fetch(); console.log('Network type:', networkInfo.type) - if (networkInfo.type === 'wifi') { //todo: no need to check for register circuit as zkey is smol + if (networkInfo.type === 'wifi' || circuit === 'disclose') { fetchZkey(circuit); } else { const response = await axios.head(zkeyZipUrls[circuit]); @@ -145,17 +145,7 @@ export async function fetchZkey( .then(async () => { console.log('Download complete'); - RNFS.readDir(RNFS.DocumentDirectoryPath) - .then((result) => { - console.log('Directory contents before unzipping:', result); - }) - await unzip(`${RNFS.DocumentDirectoryPath}/${circuit}.zkey.zip`, RNFS.DocumentDirectoryPath); - - RNFS.readDir(RNFS.DocumentDirectoryPath) - .then((result) => { - console.log('Directory contents after unzipping:', result); - }) console.log('Unzip complete'); update({