aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-11-11 11:07:12 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-11-11 11:07:12 +0800
commit17aac2dbc54b733aeed5f16ef2e7bd8378060ca9 (patch)
tree8948496230e160c389ad57ab8ed26b9d8e3557a3 /app/scripts/metamask-controller.js
parentf665b779cbc0f503198e67c5e10bccd2e0e0d2bb (diff)
downloadtangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.gz
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.bz2
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.lz
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.xz
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.zst
tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.zip
fix tx data so it has the network id
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 4c01b23d8..07d365283 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -17,6 +17,7 @@ module.exports = class MetamaskController {
this.configManager = new ConfigManager(opts)
this.keyringController = new KeyringController({
configManager: this.configManager,
+ getNetwork: this.getStateNetwork.bind(this),
})
this.provider = this.initializeProvider(opts)
this.ethStore = new EthStore(this.provider)
@@ -399,4 +400,9 @@ module.exports = class MetamaskController {
cb(e)
}
}
+
+ getStateNetwork () {
+ return this.state.network
+ }
}
+