Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Add reviewer feedback.
Browse files Browse the repository at this point in the history
Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst committed Sep 5, 2023
1 parent 2d8cbfa commit 2433cf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/docs/truffle/how-to/.pages
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
nav:
- Migrate to Hardhat: migrate-to-hardhat.md
- Install Truffle: install.md
- Create a project: create-a-project.md
- Compile a project: compile-contracts.md
Expand Down
9 changes: 7 additions & 2 deletions src/docs/truffle/how-to/migrate-to-hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ npm install --save-dev hardhat
Update the Truffle folder structure as follows:

* Rename the `migrations` directory to `scripts`
* Rename `truffle-config.js` to `hardhat.config.js`
* Create a `hardhat.config.js` file with your network details and Solidity settings. Refer to
[the Hardhat documentation](https://hardhat.org/hardhat-runner/docs/config) for advanced parameters.

The standard folder structure for Truffle and Hardhat is as follows:

Expand All @@ -49,6 +50,10 @@ The standard folder structure for Truffle and Hardhat is as follows:

## Compile, test, and deploy contracts

You may need to swap Truffle's native web3 for Hardhat's [Web3.js](https://hardhat.org/hardhat-runner/plugins/nomiclabs-hardhat-web3) or
[ethers.js](https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ethers) plugins to deploy your contract. Refer to
[the Hardhat documentation](https://hardhat.org/hardhat-runner/docs/guides/deploying) for more information on deploying contracts.

The process to compile, test, and deploy your contracts on Hardhat is:

1. Install dependencies listed in your project's `package.json` file:
Expand Down Expand Up @@ -124,7 +129,7 @@ module.exports = {
};
```

You can also load accounts that you can access using the [`Signer`](https://docs.ethers.org/v6/api/providers/#Signer)
You can also load accounts that you can access using the Ethers [`Signer`](https://docs.ethers.org/v6/api/providers/#Signer)
interface

```javascript
Expand Down

0 comments on commit 2433cf6

Please sign in to comment.