Skip to content

Commit

Permalink
fix issue where this.ethQuery is sometimes unexpectedly undefined (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 authored Aug 22, 2024
1 parent fdd200a commit 45a05f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SmartTransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ export default class SmartTransactionsController extends StaticIntervalPollingCo
provider,
} = this.getNetworkClientById(selectedNetworkClientId);
this.configure({ chainId });
this.ethQuery = new EthQuery(provider);
this.initializeSmartTransactionsForChainId();
this.checkPoll(this.state);
this.ethQuery = new EthQuery(provider);
});

this.subscribe((currentState: any) => this.checkPoll(currentState));
Expand Down

0 comments on commit 45a05f3

Please sign in to comment.