-
Notifications
You must be signed in to change notification settings - Fork 225
Minor driftClient improvement #2137
Copy link
Copy link
Open
Description
Would it be possible to add optional chaining to the accountSubscriber.getSpotMarketAccountAndSlot(marketIndex).data calls to avoid possible runtime errors?
protocol-v2/sdk/src/driftClient.ts
Line 696 in 55bcbe4
| public getSpotMarketAccount( |
protocol-v2/sdk/src/driftClient.ts
Line 706 in 55bcbe4
| public async forceGetSpotMarketAccount( |
this.accountSubscriber.getSpotMarketAccountAndSlot(marketIndex)?.data
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels