Skip to content

Commit

Permalink
fix: setup listeners current connector (#3318)
Browse files Browse the repository at this point in the history
* fix: setup listeners current connector

* chore: add release npm

* add changeset

* unrelease PR

---------

Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com>
  • Loading branch information
luizstacio and Torres-ssf authored Oct 13, 2024
1 parent 48598be commit 85072f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-chicken-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/account": patch
---

fix: setup listeners current connector
3 changes: 2 additions & 1 deletion packages/account/src/connectors/fuel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ export class Fuel extends FuelConnector implements FuelSdk {

private async initialize(): Promise<void> {
try {
await this.setDefaultConnector();
const connectResponse = this.setDefaultConnector();
this._targetUnsubscribe = this.setupConnectorListener();
await connectResponse;
} catch (error) {
throw new FuelError(ErrorCode.INVALID_PROVIDER, 'Error initializing Fuel Connector');
}
Expand Down

0 comments on commit 85072f7

Please sign in to comment.