Skip to content

Commit 0f355af

Browse files
committed
grammarly pass
1 parent 6076bb9 commit 0f355af

File tree

6 files changed

+23
-21
lines changed

6 files changed

+23
-21
lines changed

smart-contracts/cookbook/smart-contracts/deploy-basic/basic-hardhat.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Deploy Basic Contract with Hardhat
3-
description: Learn how to deploy a basic smart contract to Polkadot Hub using Hardhat, Perfect for professional workflows requiring comprehensive testing and debugging.
3+
description: Learn how to deploy a basic smart contract to Polkadot Hub using Hardhat, ideal for professional workflows that require comprehensive testing and debugging.
44
categories: Smart Contracts
55
---
66

@@ -38,7 +38,7 @@ Open `hardhat.config.js` and add `polkadotHubTestnet` to the `networks` configur
3838
```
3939

4040
!!! tip
41-
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys in a secure way.
41+
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys securely.
4242

4343
## Create the Contract
4444

@@ -61,7 +61,7 @@ Compile your `Storage.sol` contract using the following command:
6161
npx hardhat compile
6262
```
6363

64-
You will see a message in the terminal confirming the contract was successfully compiled similar to the following:
64+
You will see a message in the terminal confirming the contract was successfully compiled, similar to the following:
6565

6666
--8<-- 'code/smart-contracts/cookbook/smart-contracts/deploy-basic-contract/basic-hardhat/compile-output.html'
6767

@@ -113,7 +113,7 @@ Congratulations! You've now deployed a basic smart contract to Polkadot Hub Test
113113

114114
---
115115

116-
Walk through deploying a NFT to the Polkadot Hub using Hardhat.
116+
Walk through deploying an NFT to the Polkadot Hub using Hardhat.
117117

118118
[:octicons-arrow-right-24: Get Started](/smart-contracts/cookbook/smart-contracts/deploy-nft/nft-hardhat/)
119119

smart-contracts/cookbook/smart-contracts/deploy-basic/basic-remix.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Deploy Basic Contract with Remix IDE
3-
description: Learn how to deploy a basic smart contract to Polkadot Hub using Remix IDE Ideal for rapid prototyping, learning, and visual development.
3+
description: Learn how to deploy a basic smart contract to Polkadot Hub using Remix IDE, ideal for rapid prototyping, learning, and visual development.
44
categories: Smart Contracts
55
---
66

@@ -22,13 +22,13 @@ Before you begin, ensure you have the following:
2222

2323
Navigate to [Remix](https://remix.ethereum.org/){target=\_blank} in your web browser.
2424

25-
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various plugins for development, and use a terminal. By default, you will see the `contracts` folder with the `Storage.sol` file, which will be used as the example contract throughout this guide.
25+
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various development plugins, and use a terminal. By default, you will see the `contracts` folder with the `Storage.sol` file, which will be used as the example contract throughout this guide.
2626

2727
![](/images/smart-contracts/cookbook/smart-contracts/deploy-basic/deploy-basic/deploy-basic-01.webp)
2828

2929
## Compile the Contract
3030

31-
Ensure your contract is open in the Remix IDE Editor, and use the follow steps to compile:
31+
Ensure your contract is open in the Remix IDE Editor, and use the following steps to compile:
3232

3333
1. Select the **Solidity Compiler** plugin from the left panel.
3434
2. Select the **Compile MyToken.sol** button.
@@ -76,7 +76,7 @@ Congratulations! You've now deployed a basic smart contract to Polkadot Hub Test
7676

7777
---
7878

79-
Walk through deploying a NFT to the Polkadot Hub using Remix.
79+
Walk through deploying an NFT to the Polkadot Hub using Remix.
8080

8181
[:octicons-arrow-right-24: Get Started](/smart-contracts/cookbook/smart-contracts/deploy-nft/nft-remix/)
8282

smart-contracts/cookbook/smart-contracts/deploy-erc20/erc20-hardhat.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ tools: Hardhat
1010

1111
## Introduction
1212

13-
[ERC-20](https://eips.ethereum.org/EIPS/eip-20){target=\_blank} tokens are fungible tokens commonly used for creating cryptocurrencies, governance tokens, and staking mechanisms. Polkadot Hub enables easy ERC-20 token deployment with Ethereum-compatible smart contracts and tools via the EVM backend.
13+
[ERC-20](https://eips.ethereum.org/EIPS/eip-20){target=\_blank} tokens are fungible tokens commonly used for creating cryptocurrencies, governance tokens, and staking mechanisms. Polkadot Hub enables easy deployment of ERC-20 tokens via Ethereum-compatible smart contracts and tools.
1414

1515
This tutorial covers deploying an ERC-20 contract on the Polkadot Hub TestNet using [Hardhat](https://hardhat.org/){target=\_blank}, an Ethereum development environment. The ERC-20 contract can be retrieved from OpenZeppelin's [GitHub repository]({{ dependencies.repositories.open_zeppelin_contracts.repository_url}}/tree/{{ dependencies.repositories.open_zeppelin_contracts.version}}/contracts/token/ERC20){target=\_blank} or their [Contract Wizard](https://wizard.openzeppelin.com/){target=\_blank}.
1616

1717
## Prerequisites
1818

19-
Before you begin, ensure sure you have the following:
19+
Before you begin, ensure you have the following:
2020

2121
- A basic understanding of [Solidity](https://www.soliditylang.org/){target=\_blank} programming and [ERC-20](https://ethereum.org/developers/docs/standards/tokens/erc-20/) fungible tokens.
2222
- Node.js v22.13.1 or later installed.
@@ -25,7 +25,9 @@ Before you begin, ensure sure you have the following:
2525

2626
## Set Up Your Project
2727

28-
This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-developers/revm-hardhat-examples/tree/master/erc20-hardhat){target=\_blank} that contains all the necessary files. To get started, take the following steps:
28+
This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-developers/revm-hardhat-examples/tree/master/erc20-hardhat){target=\_blank} that contains all the necessary files.
29+
30+
To get started, take the following steps:
2931

3032
1. Clone the GitHub repository locally:
3133

@@ -34,13 +36,13 @@ This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-devel
3436
cd revm-hardhat-examples/erc20-hardhat
3537
```
3638

37-
2. Install the dependencies:
39+
2. Install the dependencies using the following command:
3840

3941
```bash
4042
npm i
4143
```
4244

43-
This will fetch all the necessary packages to help you deploy an ERC-20 with Hardhat to Polkadot.
45+
This command will fetch all the necessary packages to help you deploy an ERC-20 with Hardhat to Polkadot.
4446

4547
## Configure Hardhat
4648

@@ -53,7 +55,7 @@ If you started with the cloned Hardhat ERC-20 template, `hardhat.config.js` is a
5355
```
5456

5557
!!! tip
56-
Visit the Hardhat [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} documentation to learn how to use Hardhat to handle your private keys in a secure way.
58+
Visit the Hardhat [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} documentation to learn how to use Hardhat to handle your private keys securely.
5759

5860
## Compile the Contract
5961

@@ -79,7 +81,7 @@ You can view the predefined test file at [`test/MyToken.test.ts`](https://github
7981
- The initial token supply is zero.
8082
- The owner can mint tokens.
8183
- The total supply increases after a mint.
82-
- Successful mints to different test addresses with correct corresponding account balance and total supply changes.
84+
- Successful mints to different test addresses with expected account balance and total supply changes.
8385
8486
Run the test using the following command:
8587

smart-contracts/cookbook/smart-contracts/deploy-erc20/erc20-remix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Follow the steps below to create the ERC-20 contract:
4444
4545
Solidity source code compiles into bytecode that can be deployed on the blockchain. During this process, the compiler checks the contract for syntax errors, ensures type safety, and generates the machine-readable instructions needed for blockchain execution.
4646
47-
Ensure your contract is open in the Remix IDE Editor, and use the follow steps to compile:
47+
Ensure your contract is open in the Remix IDE Editor, and use the following steps to compile:
4848
4949
1. Select the **Solidity Compiler** plugin from the left panel.
5050
2. Select the **Compile MyToken.sol** button.
@@ -72,7 +72,7 @@ Follow these steps to deploy the contract using Remix:
7272
Once deployed, you can interact with your contract through Remix. Find your contract under **Deployed/Unpinned Contracts**, and click it to expand the available methods. In this example, you'll mint some tokens to a given address using the following steps:
7373
7474
1. Expand the **mint** function:
75-
1. Enter the recipient address and the amount (remember to add 18 zeros for 1 whole token).
75+
1. Enter the recipient address and the amount (remember to add 18 zeros for one whole token).
7676
2. Click **transact**.
7777
7878
2. Approve the transaction in the MetaMask popup.

smart-contracts/cookbook/smart-contracts/deploy-nft/nft-hardhat.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Deploy ERC-721 Using Hardhat
3-
description: Learn how to deploy an ERC-721 NFT contract to Polkadot Hub with Hardhat, a comprehenive development environment with built-in deployment capabilities.
3+
description: Learn how to deploy an ERC-721 NFT contract to Polkadot Hub using Hardhat, a comprehensive development environment with built-in deployment capabilities.
44
tutorial_badge: Beginner
55
categories: Basics, Smart Contracts
66
tools: EVM Wallet, Hardhat
@@ -48,7 +48,7 @@ Open `hardhat.config.js` and update to add `polkadotHubTestnet` to the `networks
4848
```
4949

5050
!!! tip
51-
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys in a secure way.
51+
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys securely.
5252
5353
## Create the Contract
5454
@@ -71,7 +71,7 @@ Compile your `MyNFT.sol` contract using the following command:
7171
npx hardhat compile
7272
```
7373
74-
You will see a message in the terminal confirming the contract was successfully compiled similar to the following:
74+
You will see a message in the terminal confirming the contract was successfully compiled, similar to the following:
7575
7676
--8<-- 'code/smart-contracts/cookbook/smart-contracts/deploy-erc721-nft/nft-hardhat/compile-output.html'
7777

smart-contracts/cookbook/smart-contracts/deploy-nft/nft-remix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This guide demonstrates how to deploy an [ERC-721](https://eips.ethereum.org/EIP
2424

2525
Navigate to [Remix](https://remix.ethereum.org/){target=\_blank} in your web browser.
2626

27-
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various plugins for development, and use a terminal.
27+
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various development plugins, and use a terminal.
2828

2929
## Create Your Contract
3030

0 commit comments

Comments
 (0)