Skip to content

docs: document vm.prompt display in script with external libs #1315

@beeb

Description

@beeb

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (a0a0020 2024-08-12T00:21:34.427762642Z)

What command(s) is the bug in?

forge script

Operating System

Linux

Describe the bug

Repro code: https://github.com/beeb/foundry-repro-prompt-lib

When a contract must be linked against external libraries, and a Foundry script deploys such contract, prompts are
shown twice.

Reproduction steps:

  1. Launch an anvil instance: anvil -a 1
  2. Launch script: forge script -f http://localhost:8545 --broadcast script/Counter.s.sol:CounterScript
  3. Observe that a prompt shows up and paste the first anvil private key: 0xac0974bec3...
  4. Observe that a second identical prompt is displayed

If the deployed contract does not have external libraries that must be linked, the problem does not happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions