Skip to content

deployCode using artifact names does not work #18

@imadarchid

Description

@imadarchid

Describe the bug
deployCode() is used across the project to deploy contracts from the project's out folder. Only a full path of the artifact works. This issue was raised in @kmtr's PR (#17). Importing the contract works, but we'd have to do so for every script that uses the same approach.

I suspect this is due to the following: foundry-rs/foundry#7569 (comment)

My current temporary fix is to include the following in my foundry.toml:
unchecked_cheatcode_artifacts = true

To Reproduce
make fct-init
make fct-deploy-link-token
or any make file that invokes the deployCode() function.

Expected behavior
Contract should get deployed.

Screenshots

Image

Desktop (please complete the following information):

  • OS: macOS
  • Node Version: v22.11.0
  • Foundry Version: v0.3.1

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