You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current "npx hardhat" command does not include the "Create a basic sample project" option as used on this page. Instead, it presents the following options:
Create a JavaScript project
Create a TypeScript project
Create a TypeScript project (with Viem)
Create an empty hardhat.config.js
The instruction to "Select 'Create a basic sample project'" should be replaced with one of the above options in step 5 of the process.
Additionally, it would be beneficial to include instructions on obtaining YOUR PRIVATE KEY, as demonstrated on this page.
The current deploy.js script produces the following error:
TypeError: counter.deployed is not a function
Fix:
Commenting out await counter.deployed() allows the contract to be deployed, but to an undefined address. Using await counter.getAddress() in the console log statement correctly displays the deployed address. We should replace counter.address with await counter.getAddress() to properly display the address.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
The instruction to "Select 'Create a basic sample project'" should be replaced with one of the above options in step 5 of the process.
Additionally, it would be beneficial to include instructions on obtaining YOUR PRIVATE KEY, as demonstrated on this page.
The current
deploy.js
script produces the following error:TypeError: counter.deployed is not a function
Fix:
Commenting out
await counter.deployed()
allows the contract to be deployed, but to an undefined address. Usingawait counter.getAddress()
in the console log statement correctly displays the deployed address. We should replacecounter.address
withawait counter.getAddress()
to properly display the address.The text was updated successfully, but these errors were encountered: