aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/localhostState.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2018-07-31 11:18:01 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2018-07-31 11:18:01 +0800
commit2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2 (patch)
tree54729aff61d6475d6faa6ada53e344af447f7fbf /test/unit/localhostState.js
parent3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5 (diff)
downloadtangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar.gz
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar.bz2
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar.lz
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar.xz
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.tar.zst
tangerine-wallet-browser-2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2.zip
Set metamask controller network provider to localhost
Diffstat (limited to 'test/unit/localhostState.js')
-rw-r--r--test/unit/localhostState.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/unit/localhostState.js b/test/unit/localhostState.js
new file mode 100644
index 000000000..ea0fa9194
--- /dev/null
+++ b/test/unit/localhostState.js
@@ -0,0 +1,21 @@
+
+/**
+ * @typedef {Object} FirstTimeState
+ * @property {Object} config Initial configuration parameters
+ * @property {Object} NetworkController Network controller state
+ */
+
+/**
+ * @type {FirstTimeState}
+ */
+const initialState = {
+ config: {},
+ NetworkController: {
+ provider: {
+ type: 'rpc',
+ rpcTarget: 'http://localhost:8545'
+ }
+ },
+}
+
+module.exports = initialState