1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix some references

This commit is contained in:
Dan Finlay 2016-09-12 11:21:27 -07:00
parent 363c2a0939
commit e0e38b879f
2 changed files with 4 additions and 4 deletions

View File

@ -449,7 +449,7 @@ IdentityStore.prototype.tryPassword = function (password, cb) {
const isCorrect = keyStore.isDerivedKeyCorrect(pwDerivedKey) const isCorrect = keyStore.isDerivedKeyCorrect(pwDerivedKey)
if (!isCorrect) return cb(new Error('Lightwallet - password incorrect')) if (!isCorrect) return cb(new Error('Lightwallet - password incorrect'))
this._createIdMgmt(derivedKey) this._createIdMgmt(pwDerivedKey)
cb() cb()
}) })
} }
@ -487,7 +487,7 @@ IdentityStore.prototype._createVault = function (password, seedPhrase, entropy,
IdentityStore.prototype._createIdMgmt = function (derivedKey) { IdentityStore.prototype._createIdMgmt = function (derivedKey) {
this._idmgmt = new IdManagement({ this._idmgmt = new IdManagement({
keyStore: this.keyStore, keyStore: this._keyStore,
derivedKey: derivedKey, derivedKey: derivedKey,
configManager: this.configManager, configManager: this.configManager,
}) })

View File

@ -109,7 +109,7 @@ describe('IdentityStore', function() {
}) })
it('should enforce seed compliance with TestRPC', function (done) { it('should enforce seed compliance with TestRPC', function (done) {
this.timeout(5000) this.timeout(10000)
const tests = assertions.map((assertion) => { const tests = assertions.map((assertion) => {
return function (cb) { return function (cb) {
accounts = [] accounts = []
@ -122,7 +122,7 @@ describe('IdentityStore', function() {
idStore.tryPassword(password, function (err) { idStore.tryPassword(password, function (err) {
assert.ok(idStore.isUnlocked(), 'should unlock the id store') assert.ok(idStore._isUnlocked(), 'should unlock the id store')
idStore.submitPassword(password, function(err, account) { idStore.submitPassword(password, function(err, account) {
assert.ifError(err) assert.ifError(err)