You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Foundry integration tests (for the devchain), we cannot test contracts that depend on linked libraries because vm.getDeployedCode() cannot fetch bytecode of contracts that depend on linked libraries. This is a known limitation of Foundry at the moment.
This is is blocked by a regression introduce in the latest foundry version. As a next step, I'd like to make sure a bug is filed or add a comment to an existing but report, so this can be fixed in a future release)
In Foundry integration tests (for the devchain), we cannot test contracts that depend on linked libraries because
vm.getDeployedCode()
cannot fetch bytecode of contracts that depend on linked libraries. This is a known limitation of Foundry at the moment.They merged a PR that fixes this:
nightly-fbad377ab26a432e48444cf324feee1195a30960
Unfortunately, we can't use the latest version, because of a regression it has in finding artifacts, which is a known issue:
As soon we can bump the version, it might be good to include contracts that depend on linked libraries in the tests.
Practically, this would simply involve removing this
if
-clause:celo-monorepo/packages/protocol/test-sol/integration/Integration.t.sol
Lines 47 to 58 in c27a53e
Originally encountered this limitation in this PR:
The text was updated successfully, but these errors were encountered: