Closed therealharpaljadeja closed 4 months ago
This looks like an installation issue with the npm package @openzeppelin/upgrades-core
or its dependency solidity-ast
.
You can try manually installing that package for your project by running the following command from your project root:
npm install @openzeppelin/upgrades-core@latest
Closing this as it looks like an installation issue. Feel free to reopen if you are still encountering the problem.
forge update
worked for me and resolved this issue. This effectively updated the libaries.
also needed to update foundry.toml
evm_version="cancun"
but this probably depends on what compiler version you are using
I am using
openzeppelin-foundry-upgrades
, openzeppelin contracts v5 and using the following code snippet in mysetUp()
function in foundry test.foundry.toml
OS: macOS Sonoma
I get the following error when running
forge test
. Compilation works, tests fail.