aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/id-management.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-06-25 08:11:55 +0800
committerGitHub <noreply@github.com>2016-06-25 08:11:55 +0800
commit52518a5efc2f37881c2e88c8cb0649ad5bc41dd4 (patch)
tree54734b126f94cedf1a19c9e406cb6f0a6091476b /app/scripts/lib/id-management.js
parent251cb84afb91cfbae14f8e68314b57c1e25a4af3 (diff)
parent60fec24c003605047f3ab7c011a1ee98432b369b (diff)
downloadtangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar.gz
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar.bz2
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar.lz
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar.xz
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.tar.zst
tangerine-wallet-browser-52518a5efc2f37881c2e88c8cb0649ad5bc41dd4.zip
Merge pull request #323 from MetaMask/RefactorBackground
Refactored background.js controller apart from chrome + transport
Diffstat (limited to 'app/scripts/lib/id-management.js')
-rw-r--r--app/scripts/lib/id-management.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/id-management.js b/app/scripts/lib/id-management.js
index cc50bd649..9b8ceb415 100644
--- a/app/scripts/lib/id-management.js
+++ b/app/scripts/lib/id-management.js
@@ -1,6 +1,5 @@
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
-const configManager = require('./config-manager-singleton')
module.exports = IdManagement
@@ -9,6 +8,7 @@ function IdManagement (opts) {
this.keyStore = opts.keyStore
this.derivedKey = opts.derivedKey
+ this.configManager = opts.configManager
this.hdPathString = "m/44'/60'/0'/0"
this.getAddresses = function () {
@@ -32,9 +32,9 @@ function IdManagement (opts) {
// Add the tx hash to the persisted meta-tx object
var txHash = ethUtil.bufferToHex(tx.hash())
- var metaTx = configManager.getTx(txParams.metamaskId)
+ var metaTx = this.configManager.getTx(txParams.metamaskId)
metaTx.hash = txHash
- configManager.updateTx(metaTx)
+ this.configManager.updateTx(metaTx)
// return raw serialized tx
var rawTx = ethUtil.bufferToHex(tx.serialize())