Skip to content

Conversation

@sverps
Copy link
Collaborator

@sverps sverps commented Mar 23, 2023

Fixes #254

A dev that doesn't need any custom contract can simply remove the hardhat_contracts.ts import in the scaffold.config, and set contracts: null.

Typescript won't complain due to types resolving differently when contracts is set to null in the config.

@technophile-04 technophile-04 marked this pull request as ready for review March 24, 2023 03:49
@technophile-04 technophile-04 marked this pull request as draft March 24, 2023 03:51
@sverps sverps mentioned this pull request Mar 24, 2023
@carletex carletex marked this pull request as ready for review March 24, 2023 11:11
@sverps
Copy link
Collaborator Author

sverps commented Mar 24, 2023

Found another confusing thing: the generateTsAbi script just spits out an error when called directly (which is logical since the json doesn't exist). This can be rather confusing for a user that is exploring which scripts exist in the package.json. He might not understand that this script is only used as part of the deploy and is not to be used directly (even though the name suggests it could).

So I removed the separate script for it and just added it to the deploy script instead.

@carletex
Copy link
Member

So I removed the separate script for it and just added it to the deploy script instead.

Yep, nice one. Make sense!

This looks great. Merging it.

Thank you @sverps

@carletex carletex merged commit 84aa60c into main Mar 24, 2023
@carletex carletex deleted the feature/254-no-contracts-mode branch March 24, 2023 11:25
0xc0de42 pushed a commit to 0xc0de42/scaffold-eth-2 that referenced this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vercel builds fails

3 participants