Skip to content

Restrict public constructor of PositionSource #310

Description

@jordanschalm

Description

The PositionSource struct in FlowALPPositionResources.cdc has an access(all) constructor (init), meaning anyone can construct a PositionSource if they have the required capability. This constructor should be restricted to prevent unauthorized construction.

Context

Discussion thread: https://flow-foundation.slack.com/archives/C08QF29F7TK/p1774553713378439

Location

  • cadence/contracts/FlowALPPositionResources.cdc, line 416: access(all) struct PositionSource

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions