aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/selectors.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r--ui/app/selectors.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js
index 976342455..a36671b42 100644
--- a/ui/app/selectors.js
+++ b/ui/app/selectors.js
@@ -1,3 +1,5 @@
+import {NETWORK_TYPES} from './constants/common'
+
const abi = require('human-standard-token-abi')
import {
transactionsSelector,
@@ -37,6 +39,7 @@ const selectors = {
getNetworkIdentifier,
isBalanceCached,
getAdvancedInlineGasShown,
+ getIsMainnet,
}
module.exports = selectors
@@ -228,6 +231,11 @@ function getTotalUnapprovedCount ({ metamask }) {
unapprovedTypedMessagesCount
}
+function getIsMainnet (state) {
+ const networkType = getNetworkIdentifier(state)
+ return networkType === NETWORK_TYPES.MAINNET
+}
+
function preferencesSelector ({ metamask }) {
return metamask.preferences
}