porter-finance / v1-core

⛰️ Smart contracts powering the Porter protocol.
https://porter.finance
GNU Affero General Public License v3.0
4 stars 3 forks source link

fix failure without .env #300

Closed RusseII closed 2 years ago

RusseII commented 2 years ago

This issue was introduced with https://github.com/porter-finance/v1-core/pull/281

Previous error:

image
Namaskar-1F64F commented 2 years ago

I added a postinstall script to generate the typechain typings. Otherwise, the first run of anything with hardhat will fail because it seems like the typings aren't generated quick enough for the typescript compiler or something.

I removed the typechain Auction on the auction task. I think it might never fail with the postinstall script, but just in case, let's not include that. The problem with tasks is they are run even before the typechain types are created which makes it never run successfully.