PaulRBerg / hardhat-template

Hardhat-based template for developing Solidity smart contracts
MIT License
1.96k stars 559 forks source link

Refactor the deploy script to use hardhat deploy rather than a task #159

Closed DenhamPreen closed 1 year ago

DenhamPreen commented 1 year ago

I worked on this for some local indexing development and thought this may be useful for others.

Problem: The contract deployments are inaccessible from the hre as they are deployed in a transaction via a task

Solution: Using hardhat-deploy the contracts can be accessed after they're deployed via tasks

PaulRBerg commented 1 year ago

Thank you for your PR. It generally looks good to me, bar for a few linting errors and stylistic choices (e.g. I prefer to order things alphabetically).

Will fix and merge shortly.