From d8a17a25d302cfeb745c7b82eb9d329695b731f9 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Sun, 3 Apr 2016 11:31:58 -0700 Subject: [PATCH 1/2] Bump version --- app/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/manifest.json b/app/manifest.json index a821cc4cb..f1c87a093 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_appName__", "short_name": "Metamask", - "version": "1.3.0", + "version": "1.3.1", "manifest_version": 2, "description": "__MSG_appDescription__", "icons": { From b134bb4374acf7e37f487e304ecffa08cd6d2185 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 4 Apr 2016 12:13:30 -0700 Subject: [PATCH 2/2] Support undefined address selection If `setSelectedAddress` is called on the IdStore, the first account is automatically selected. --- app/scripts/lib/idStore.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 13acd7a82..7fb5a6885 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -98,6 +98,11 @@ IdentityStore.prototype.getSelectedAddress = function(){ } IdentityStore.prototype.setSelectedAddress = function(address){ + if (!address) { + var addresses = this._getAddresses() + address = addresses[0] + } + this._currentState.selectedAddress = address this._didUpdate() }