Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Hardhat Version Guidance for 'Writing Your First Hello World Contract in Solidity' #442

Open
juanc004 opened this issue Mar 20, 2024 · 0 comments

Comments

@juanc004
Copy link

Description

The current README instructions for setting up a Hardhat project recommend using a generic command to install Hardhat, which by default installs the latest version. This can lead to compatibility issues for users following tutorials designed for earlier versions, especially with significant changes like the "ignition/modules" structure introduced in newer versions.

Link to the Current Instructions:

Setting up the environment for Hardhat

Expected Behavior:

The README should guide users to install a version of Hardhat that corresponds with the tutorial or documentation they are following, to prevent potential confusion and ensure compatibility.

Current Behavior:

The README instructs users to run npm install --save-dev hardhat without specifying a version, leading to the installation of the latest Hardhat version.

Suggested Update:

I recommend updating the README to include an optional step where users are instructed on how to install a specific version of Hardhat. For instance, it could suggest using the command npm install --save-dev [email protected], where 2.17.1 is the version number that matches the user's tutorial or project requirements. This minor adjustment can significantly enhance the user experience by ensuring compatibility and reducing confusion.

Steps to Reproduce:

  1. Follow the initial setup instructions in the README to create a new Hardhat project.
  2. Notice the lack of version specification in the npm install --save-dev hardhat command.
  3. Upon installation, the latest version of Hardhat is installed, which may not be compatible with tutorial or project setups, particularly those not updated for the latest Hardhat features like "ignition/modules".

Context:

This issue arose when setting up a new Hardhat project intended to follow a specific tutorial. The tutorial assumed an earlier version of Hardhat, and the discrepancy led to confusion and compatibility problems due to the newer version's different deployment methodology.

Including a step to specify the version during Hardhat installation could greatly assist users in aligning their development environment with their educational resources or project specifications, enhancing the overall setup experience.

juanc004 added a commit to juanc004/Learning-Projects that referenced this issue Mar 20, 2024
…ility

Updated README installation instructions to explicitly recommend Hardhat version 2.17.1, aligning with the requirements and ensuring full compatibility with the tutorial content addressed in Issue 0xmetaschool#442.
@juanc004 juanc004 changed the title Clarification Needed on Hardhat Version Installation in 'Setting Up Environment' Lesson of 'Writing Your First Hello World Contract in Solidity' Tutorial Simplify Hardhat Version Guidance for 'Writing Your First Hello World Contract in Solidity' Mar 20, 2024
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

No branches or pull requests

1 participant