NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7k stars 1.36k forks source link

Vyper cache doesn't work #4220

Open kiriyaga opened 11 months ago

kiriyaga commented 11 months ago

Version of Hardhat

2.14.0

What happened?

Hello, so it seems that vyper compile always compile files even when there is no changes. I think that is because we compare vyper pragma version from contract and vyper cache version, which are not same. Check this part of code and that method: https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-vyper/src/index.ts#L259

Do you maybe have some task where you gonna fix that part?

Minimal reproduction steps

Compile vyper contracts several times.

Search terms

vyper, cache

ChristopherDedominici commented 11 months ago

I managed to repro the issue, changing issue to status:ready.