Skip to content

Commit

Permalink
fix(background): download latest wallet on first time usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Dec 22, 2022
1 parent 8e24d26 commit 7ff4cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/walletManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class WalletManager {

// Start running the wallet release and download it when is necessary
public async run() {
this.latestWitnetRustVersion = await getLatestWitnetRustRelease()
if (this.existDirectory) {
// Check if latest version is compatible or needs to be downloaded
try {
Expand All @@ -65,7 +66,6 @@ export class WalletManager {
'utf8',
)
const installedVersion = getVersionFromName(versionName)
this.latestWitnetRustVersion = await getLatestWitnetRustRelease()
const isLatestVersionInstalled =
installedVersion === this.latestWitnetRustVersion
const isCompatibleRelease = semver.satisfies(
Expand Down

0 comments on commit 7ff4cd3

Please sign in to comment.