0
0
Blockchain / Solidityprogramming~10 mins

Development tools setup (Hardhat, Remix) in Blockchain / Solidity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize a new Hardhat project.

Blockchain / Solidity
npx hardhat [1]
Drag options to blanks, or click blank then click option'
Astart
Bcreate
Cinit
Dnew
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' or 'start' instead of 'init'.
2fill in blank
medium

Complete the code to compile contracts using Hardhat.

Blockchain / Solidity
npx hardhat [1]
Drag options to blanks, or click blank then click option'
Adeploy
Bcompile
Ctest
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'deploy' or 'test' instead of 'compile'.
3fill in blank
hard

Fix the error in the Hardhat config file to specify the Solidity version.

Blockchain / Solidity
module.exports = {
  solidity: '[1]'
};
Drag options to blanks, or click blank then click option'
A'0.8.0'
B"0.8.0"
C0.8.0
Dversion: '0.8.0'
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving the version unquoted or adding extra keys.
4fill in blank
hard

Fill both blanks to run a local Hardhat node and deploy contracts.

Blockchain / Solidity
npx hardhat [1] & npx hardhat [2]
Drag options to blanks, or click blank then click option'
Anode
Bcompile
Crun
Dtest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'test' or 'compile' instead of 'run' for deployment.
5fill in blank
hard

Fill all three blanks to connect Remix IDE to a local Hardhat node.

Blockchain / Solidity
In Remix, select [1] environment, set the [2] URL to http://localhost:[3].
Drag options to blanks, or click blank then click option'
AInjected Web3
BWeb3 Provider
C8545
D3000
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'Injected Web3' or wrong port number.