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

Desktop (please complete the following information):
- OS: macOS
- Node Version: v22.11.0
- Foundry Version: v0.3.1
Describe the bug
deployCode()is used across the project to deploy contracts from the project'soutfolder. 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 = trueTo Reproduce
make fct-initmake fct-deploy-link-tokenor any make file that invokes the
deployCode()function.Expected behavior
Contract should get deployed.
Screenshots
Desktop (please complete the following information):