Skip to content

Commit

Permalink
Merge pull request #21859 from MetaMask/Version-v11.5.1
Browse files Browse the repository at this point in the history
Version v11.5.1
  • Loading branch information
danjm authored Nov 16, 2023
2 parents 0941c29 + ec0f77d commit 98dfac9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [11.5.1]
### Fixed
- Fix bug that caused users to be stuck on the loading screen when opening MetaMask if their selected network had stopped working ([#21854](https://github.com/MetaMask/metamask-extension/pull/21854))

## [11.5.0]
### Added
- Updated logging so that signature requests are included in the MetaMask state logs, which can be downloaded from Settings. ([#21207)](https://github.com/MetaMask/metamask-extension/pull/21207))
Expand Down Expand Up @@ -4171,7 +4175,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
### Uncategorized
- Added the ability to restore accounts from seed words.

[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.5.0...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.5.1...HEAD
[11.5.1]: https://github.com/MetaMask/metamask-extension/compare/v11.5.0...v11.5.1
[11.5.0]: https://github.com/MetaMask/metamask-extension/compare/v11.4.1...v11.5.0
[11.4.1]: https://github.com/MetaMask/metamask-extension/compare/v11.4.0...v11.4.1
[11.4.0]: https://github.com/MetaMask/metamask-extension/compare/v11.3.0...v11.4.0
Expand Down
21 changes: 9 additions & 12 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1903,12 +1903,15 @@ export default class MetamaskController extends EventEmitter {
this.resetStates(resetMethods);
}

// Automatic login via config password or loginToken
// Automatic login via config password
const password = process.env.PASSWORD;
if (
!this.isUnlocked() &&
this.onboardingController.store.getState().completedOnboarding
this.onboardingController.store.getState().completedOnboarding &&
password &&
!process.env.IN_TEST
) {
this._loginUser();
this._loginUser(password);
} else {
this._startUISync();
}
Expand Down Expand Up @@ -3374,17 +3377,11 @@ export default class MetamaskController extends EventEmitter {
this.setLedgerTransportPreference(transportPreference);
}

async _loginUser() {
async _loginUser(password) {
try {
// Automatic login via config password
const password = process.env.PASSWORD;
if (password && !process.env.IN_TEST) {
await this.submitPassword(password);
}
// Automatic login via storage encryption key
else if (isManifestV3) {
await this.submitEncryptionKey();
}
await this.submitPassword(password);

// Updating accounts in this.accountTracker before starting UI syncing ensure that
// state has account balance before it is synced with UI
await this.accountTracker._updateAccounts();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamask-crx",
"version": "11.5.0",
"version": "11.5.1",
"private": true,
"repository": {
"type": "git",
Expand Down

0 comments on commit 98dfac9

Please sign in to comment.