Skip to content

lint: calls-loop flags memory array allocations #16665

Description

@wjmelements

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.8.1 Commit SHA: 982849d Build Timestamp: 2026-08-28T17:50:20.499955000Z (1787939420) Build Profile: dist

What version of Foundryup are you on?

foundryup: 1.9.2

What command(s) is the bug in?

forge lint

Operating System

macOS (Intel)

Describe the bug

warning[calls-loop]: external call inside a loop
     ╭▸ test/mocks/FVMRewardActor.sol:1402:16
     │
1402 │         rows = new LedgerRow[](l.wallets.length);
     │                ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     │
     ╰ help: https://getfoundry.sh/forge/linting/calls-loop

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions