Skip to content

Commit 50457ac

Browse files
authored
hardhat: fix docs according to expected kusama launch (#563)
* hardhat: fix docs according to expected kusama launch * fix: title * feat: proposes hardhat.config and hardhat.md * fix: rename polkadotTestnest to westendHub * fix: replaces `npx hardhat node` with `npx hardhat node-polkavm` * docs: small changes in "Use Hardhat with Polkadot" * docs: minor fixes
1 parent 56c3eff commit 50457ac

File tree

2 files changed

+108
-115
lines changed

2 files changed

+108
-115
lines changed

.snippets/code/develop/smart-contracts/dev-environments/hardhat/hardhat.config.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
11
// hardhat.config.js
22
require('@nomicfoundation/hardhat-toolbox');
3-
43
require('@nomicfoundation/hardhat-network-helpers');
54
require('@nomicfoundation/hardhat-chai-matchers');
65
require('@nomicfoundation/hardhat-ethers');
7-
require('hardhat-gas-reporter');
86
require('@nomicfoundation/hardhat-ignition');
7+
require('hardhat-gas-reporter');
98

10-
require('hardhat-resolc');
11-
require('hardhat-revive-node');
9+
require('@parity/hardhat-polkadot');
1210

1311
require('dotenv').config();
1412

1513
/** @type import('hardhat/config').HardhatUserConfig */
1614
module.exports = {
1715
solidity: '0.8.28',
18-
// Remix Compiler
16+
// Npm Compiler
1917
resolc: {
2018
version: '1.5.2',
21-
compilerSource: 'remix',
22-
settings: {
23-
optimizer: {
24-
enabled: false,
25-
runs: 600,
26-
},
27-
evmVersion: 'istanbul',
28-
},
19+
compilerSource: 'npm',
2920
},
3021
// Binary Compiler
3122
resolc: {
@@ -57,7 +48,7 @@ module.exports = {
5748
polkavm: true,
5849
url: `http://127.0.0.1:8545`,
5950
},
60-
westendAssetHub: {
51+
westendHub: {
6152
polkavm: true,
6253
url: 'https://westend-asset-hub-eth-rpc.polkadot.io',
6354
accounts: [process.env.PRIVATE_KEY],

0 commit comments

Comments
 (0)