Closed vinaykharayat closed 2 months ago
It looks like you may have multiple contracts with the same name (perhaps the test script name?)
You could disambiguate it by using the fully qualified contract name when calling deployUUPSProxy
, for example:
address proxy = Upgrades.deployUUPSProxy(
"src/Upshort.sol:Upshort",
abi.encodeCall(Upshort.initialize, (vm.addr(1), address(token)))
);
Closing since this should be solvable as per the comment above. Feel free to reopen if you are still encountering the problem.
I am getting this error
This is my setUp()
This is my initialize
It is failing at
deployUUPSProxy
. I already triedforge clean
,forge test --force
Output of
forge test -vvvvv
Directory structure