Skip to content

Commit

Permalink
feat: log wallet version and location
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYinusa committed Jun 30, 2024
1 parent 4c0355e commit 4473124
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/flask/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export async function metamaskFlask(
const asset: Asset = findGithubAsset(assetName, release);
createDirectory(directory);
const fileName: string = await downloadAssetZipFile(asset, directory);
extractZipContents(fileName);
logSuccess('Installed MetaMask Flask.');
const destDir: string = extractZipContents(fileName);
logSuccess(`Installed MetaMask Flask version <v${version}>\n${destDir}`);
} catch (error: any) {
logError(error.message);
}
Expand Down
4 changes: 2 additions & 2 deletions src/metamask/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export async function metamask(directory: string, version: string = DEFAULT_META
const asset: Asset = findGithubAsset(assetName, release);
createDirectory(directory);
const fileName: string = await downloadAssetZipFile(asset, directory);
extractZipContents(fileName);
logSuccess('Installed MetaMask.');
const destDir: string = extractZipContents(fileName);
logSuccess(`Installed MetaMask version <v${version}>\n${destDir}`);
} catch (error: any) {
logError(error.message);
}
Expand Down
4 changes: 2 additions & 2 deletions src/rainbow/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export async function rainbow(directory: string, version: string = DEFAULT_RAINB
const artifact: Artifact = await fetchGithubArtifact(version, run, RAINBOW_GITHUB_API);
createDirectory(directory);
const fileName: string = await downloadArtifactZipFile(artifact, directory);
extractZipContents(fileName);
logSuccess('Installed Rainbow.');
const destDir: string = extractZipContents(fileName);
logSuccess(`Installed Rainbow version <v${version}>\n${destDir}`);
} catch (error: any) {
logError(error.message);
}
Expand Down
4 changes: 2 additions & 2 deletions src/zerion/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export async function zerion(directory: string, version: string = DEFAULT_ZERION
const asset: Asset = findGithubAsset(assetName, release);
createDirectory(directory);
const fileName: string = await downloadAssetZipFile(asset, directory);
const destDir = extractZipContents(fileName);
const destDir: string = extractZipContents(fileName);
moveFiles(destDir);
logSuccess('Installed Zerion.');
logSuccess(`Installed Zerion version <v${version}>\n${destDir}`);
} catch (error: any) {
logError(error.message);
}
Expand Down

0 comments on commit 4473124

Please sign in to comment.