aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-16 07:56:25 +0800
committerGitHub <noreply@github.com>2017-02-16 07:56:25 +0800
commit3bd23564fbdc5dc81c23f5246956c4de07fb1601 (patch)
treed3db707f1c2e8236c78e143b48e1a2fd9f0323f9 /app/scripts/lib
parentf2539d125c2cfe240511f8505e222a9893bf7748 (diff)
parent352bb5cb3941c3a07b383c2400dae337771c6d3a (diff)
downloadtangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.gz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.bz2
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.lz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.xz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.zst
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.zip
Merge pull request #1121 from MetaMask/dev
Merge dev into master
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/config-manager.js22
-rw-r--r--app/scripts/lib/idStore.js2
-rw-r--r--app/scripts/lib/inpage-provider.js5
3 files changed, 5 insertions, 24 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 7ae2d4400..6267eab68 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -228,28 +228,6 @@ ConfigManager.prototype._emitUpdates = function (state) {
})
}
-ConfigManager.prototype.setConfirmedDisclaimer = function (confirmed) {
- var data = this.getData()
- data.isDisclaimerConfirmed = confirmed
- this.setData(data)
-}
-
-ConfigManager.prototype.getConfirmedDisclaimer = function () {
- var data = this.getData()
- return data.isDisclaimerConfirmed
-}
-
-ConfigManager.prototype.setTOSHash = function (hash) {
- var data = this.getData()
- data.TOSHash = hash
- this.setData(data)
-}
-
-ConfigManager.prototype.getTOSHash = function () {
- var data = this.getData()
- return data.TOSHash
-}
-
ConfigManager.prototype.getGasMultiplier = function () {
var data = this.getData()
return data.gasMultiplier
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 1afe5f651..7a6968c6c 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -94,7 +94,6 @@ IdentityStore.prototype.getState = function () {
isInitialized: !!configManager.getWallet() && !seedWords,
isUnlocked: this._isUnlocked(),
seedWords: seedWords,
- isDisclaimerConfirmed: configManager.getConfirmedDisclaimer(),
selectedAddress: configManager.getSelectedAccount(),
gasMultiplier: configManager.getGasMultiplier(),
}))
@@ -343,4 +342,3 @@ IdentityStore.prototype._autoFaucet = function () {
}
// util
-
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index faecac137..92936de2f 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -84,6 +84,11 @@ MetamaskInpageProvider.prototype.send = function (payload) {
result = true
break
+ case 'net_version':
+ let networkVersion = self.publicConfigStore.getState().networkVersion
+ result = networkVersion
+ break
+
// throw not-supported Error
default:
var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'