Skip to content

Commit ee759d7

Browse files
authored
Merge branch 'master' into dp/fix-parse-units
2 parents 7805a56 + 85072f7 commit ee759d7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/four-chicken-think.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@fuel-ts/account": patch
3+
---
4+
5+
fix: setup listeners current connector

packages/account/src/connectors/fuel.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ export class Fuel extends FuelConnector implements FuelSdk {
107107

108108
private async initialize(): Promise<void> {
109109
try {
110-
await this.setDefaultConnector();
110+
const connectResponse = this.setDefaultConnector();
111111
this._targetUnsubscribe = this.setupConnectorListener();
112+
await connectResponse;
112113
} catch (error) {
113114
throw new FuelError(ErrorCode.INVALID_PROVIDER, 'Error initializing Fuel Connector');
114115
}

0 commit comments

Comments
 (0)