aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2016-10-12 07:19:13 +0800
committerGitHub <noreply@github.com>2016-10-12 07:19:13 +0800
commit229d95956bc36ec413533df00389f8c5127e050b (patch)
treeb97f0021958fbcf8ed93ac9c44e3d24eaf50f4e4 /app/scripts/lib
parent97970e803d55fc8a578a3a9e6d6f3ab19c332b4b (diff)
parentd67a5031c7f2b4cd14d3d27f3769a31769012f54 (diff)
downloadtangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar.gz
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar.bz2
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar.lz
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar.xz
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.tar.zst
tangerine-wallet-browser-229d95956bc36ec413533df00389f8c5127e050b.zip
Merge branch 'master' into i#495CustomGasField
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/config-manager.js11
-rw-r--r--app/scripts/lib/idStore.js2
2 files changed, 13 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 715efb42e..ecc9bc5f7 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -277,6 +277,17 @@ ConfigManager.prototype.getConfirmed = function () {
return ('isConfirmed' in data) && data.isConfirmed
}
+ConfigManager.prototype.setTOSHash = function (hash) {
+ var data = this.getData()
+ data.TOSHash = hash
+ this.setData(data)
+}
+
+ConfigManager.prototype.getTOSHash = function () {
+ var data = this.getData()
+ return ('TOSHash' in data) && data.TOSHash
+}
+
ConfigManager.prototype.setCurrentFiat = function (currency) {
var data = this.getData()
data.fiatCurrency = currency
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 89c0c3abc..6837a1e8d 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -60,6 +60,8 @@ IdentityStore.prototype.createNewVault = function (password, entropy, cb) {
this.configManager.setShowSeedWords(true)
var seedWords = this._idmgmt.getSeed()
+ this._loadIdentities()
+
cb(null, seedWords)
})
}