Skip to content

Minor driftClient improvement #2137

@andreimontchik

Description

@andreimontchik

Would it be possible to add optional chaining to the accountSubscriber.getSpotMarketAccountAndSlot(marketIndex).data calls to avoid possible runtime errors?

public getSpotMarketAccount(

public async forceGetSpotMarketAccount(

this.accountSubscriber.getSpotMarketAccountAndSlot(marketIndex)?.data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions