Skip to content

Commit

Permalink
Prevent pending filter hashes from returning null.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 3, 2018
1 parent 6737128 commit 48c07f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/json-rpc-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ utils.defineProperty(JsonRpcProvider.prototype, '_startPending', function() {

var seq = Promise.resolve();
hashes.forEach(function(hash) {
self._emitted['t:' + hash.toLowerCase()] = 'pending';
seq = seq.then(function() {
return self.getTransaction(hash).then(function(tx) {
self.emit('pending', tx);
Expand Down

0 comments on commit 48c07f6

Please sign in to comment.