mario-eth / soldeer

Solidity Package Manager written in rust
MIT License
240 stars 26 forks source link

"mocks/token/..." folder not in soldeer openzeppelin-contracts #166

Closed sergio-27 closed 3 months ago

sergio-27 commented 3 months ago

Hi, is it posible that the folder mocks is not in the openzeppelin contracts repo from soldeer?? It appears in the original repository from openzeppelin but not in the openzeppelin libraries from soldeer.

This two images are from the source code from soldeer Captura de pantalla 2024-08-28 a las 15 13 10 Captura de pantalla 2024-08-28 a las 15 13 21

And this is the original repo of openzeppelin contracts.

Captura de pantalla 2024-08-28 a las 15 12 52
mario-eth commented 3 months ago

hey, unfortunately that is not present in the official release on npm. After some discussions with the OZ team, they said that the mocks should not be used and they are present just on github and not on the official release so that people don't use them in production.

If you really want to use them you can use the git way of installing this, something like: forge soldeer install @openzeppelin-mocks~5.0.2 https://github.com/OpenZeppelin/openzeppelin-contracts.git

And now you have a specific oz version from git that has the mocks that can be used only for testing

sergio-27 commented 3 months ago

Okey, make sense, its just what i did, thanks for replying!!