We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 774b2d5 commit 908258fCopy full SHA for 908258f
src.ts/providers/base-provider.ts
@@ -611,8 +611,13 @@ export class BaseProvider extends Provider {
611
let newBalances: any = {};
612
613
// Find all transaction hashes we are waiting on
614
+ let uniqueEventTags: { [ tag: string ]: boolean } = { };
615
this._events.forEach((event) => {
- let comps = event.tag.split(':');
616
+ uniqueEventTags[event.tag] = true;
617
+ });
618
+
619
+ Object.keys(uniqueEventTags).forEach((tag) => {
620
+ let comps = tag.split(':');
621
switch (comps[0]) {
622
case 'tx': {
623
let hash = comps[1];
0 commit comments