Skip to content

[lint] security: hardcoded address detected, mutable field public #627

@holyfuchs

Description

@holyfuchs

Current Behavior

Test.getAccount(0x0000000000000007)

security: hardcoded address detected — consider using named address imports for portability

access(all) contract X {
    access(all) var stuff: UInt64

security: mutable field 'stuff' of contract 'X' has access(all), allowing public write access — consider restricting with entitlements

Expected Behavior

no warnings

Steps To Reproduce

  • add code to .cdc file
  • flow cadence lint

Environment

- Cadence version:
- Network:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThe issue represents a bug, malfunction, regressionFeedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions