diff --git a/.changeset/four-chicken-think.md b/.changeset/four-chicken-think.md new file mode 100644 index 00000000000..1a9c2e3436d --- /dev/null +++ b/.changeset/four-chicken-think.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/account": patch +--- + +fix: setup listeners current connector diff --git a/packages/account/src/connectors/fuel.ts b/packages/account/src/connectors/fuel.ts index 1796a586bfb..d0caf31ddb1 100644 --- a/packages/account/src/connectors/fuel.ts +++ b/packages/account/src/connectors/fuel.ts @@ -107,8 +107,9 @@ export class Fuel extends FuelConnector implements FuelSdk { private async initialize(): Promise { 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'); }