mirror of
https://github.com/selfxyz/self.git
synced 2026-01-21 04:28:14 -05:00
don't display warning screen for disclose circuit zkey
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user