Skip to content

Commit f4d1a23

Browse files
committed
fix: section for upgrades
1 parent 4f9b0a5 commit f4d1a23

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

develop/smart-contracts/dev-environments/hardhat.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,23 @@ Run your interaction script:
284284
npx hardhat run scripts/interact.js --network polkadotHubTestnet
285285
```
286286

287+
## Upgrading the Plugin
288+
289+
If you already have a Hardhat Polkadot project and want to upgrade to a newer version of the plugin, to avoid errors (for example, `Cannot find module 'run-container'`), you can clean your dependencies by running the following commands:
290+
291+
```bash
292+
rm -rf node_modules package-lock.json
293+
```
294+
295+
After that, you can upgrade the plugin to the latest version by running the following commands:
296+
297+
```bash
298+
npm install --save-dev @parity/hardhat-polkadot@latest
299+
npm install
300+
```
301+
302+
Consider using [Node.js](https://nodejs.org/){target=\_blank} 22.18+ and [npm](https://www.npmjs.com/){target=\_blank} version 10.9.0+ to avoid issues with the plugin.
303+
287304
## Where to Go Next
288305

289306
Hardhat provides a powerful environment for developing, testing, and deploying smart contracts on Polkadot Hub. Its plugin architecture allows seamless integration with PolkaVM through the `hardhat-resolc` and `hardhat-revive-node` plugins.

llms.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8296,6 +8296,23 @@ Run your interaction script:
82968296
npx hardhat run scripts/interact.js --network polkadotHubTestnet
82978297
```
82988298

8299+
## Upgrading the Plugin
8300+
8301+
If you already have a Hardhat Polkadot project and want to upgrade to a newer version of the plugin, to avoid errors (for example, `Cannot find module 'run-container'`), you can clean your dependencies by running the following commands:
8302+
8303+
```bash
8304+
rm -rf node_modules package-lock.json
8305+
```
8306+
8307+
After that, you can upgrade the plugin to the latest version by running the following commands:
8308+
8309+
```bash
8310+
npm install --save-dev @parity/hardhat-polkadot@latest
8311+
npm install
8312+
```
8313+
8314+
Consider using [Node.js](https://nodejs.org/){target=\_blank} 22.18+ and [npm](https://www.npmjs.com/){target=\_blank} version 10.9.0+ to avoid issues with the plugin.
8315+
82998316
## Where to Go Next
83008317

83018318
Hardhat provides a powerful environment for developing, testing, and deploying smart contracts on Polkadot Hub. Its plugin architecture allows seamless integration with PolkaVM through the `hardhat-resolc` and `hardhat-revive-node` plugins.

0 commit comments

Comments
 (0)