Uniswap / permit2

🔑🔑🔑 next generation token approvals mechanism
MIT License
759 stars 187 forks source link

Provide development Foundry profile that doesn't use `--via-ir` #208

Open PaulRBerg opened 1 year ago

PaulRBerg commented 1 year ago

Making contributions to this repo is difficult because recompiling the contracts takes a long time, which is due to using --via-ir:

https://github.com/Uniswap/permit2/blob/bbbc92f895049ca45c4b25a450f9d3e907659284/foundry.toml#L5

To improve the UX, consider providing a development-only Foundry profile that does not use --via-ir (and potentially disables the optimizer, too), by following the approach discussed here:

Besides Seaport, there is an example of this kind of setup in my PRBProxy project: