1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
Dan Finlay 2017-01-04 14:05:00 -08:00
parent 0fab22082a
commit 381a60695d

View File

@ -125,8 +125,7 @@ EthereumStore.prototype._updateTransaction = function(block, txHash, cb) {
var transactionsState = self._currentState.transactions
self._query.getTransaction(txHash, function (err, result) {
if (err) return cb(err)
// only populate if the entry is still present
if (transactionsState[txHash]) {
// only populate if the entry is still present if (transactionsState[txHash]) {
transactionsState[txHash] = result
self._didUpdate()
}
@ -134,8 +133,4 @@ EthereumStore.prototype._updateTransaction = function(block, txHash, cb) {
})
}
function valuesFor(obj){
return Object.keys(obj).map(function(key){ return obj[key] })
}
function noop() {}