You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hardhat error informs that I am using node v22.0.0, but I don't have it installed in my Linux.
Minimal reproduction steps
I am trying to compile a simple smart contract, my node.js is v20.12.2, but when I apply "npx hardhat compile", I receive this message:
WARNING: You are currently using Node.js v22.0.0, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions
I applied on my Terminal to list all node versions in my linux Ubuntu:
nvm ls
And there is no node version 22.0.0 in my computer:
Because of this I have this problem to use Open Zeppelin library, with this error:
TypeError: No arguments passed to the base constructor. Specify the arguments or mark "DREX" as abstract.
--> contracts/DREX.sol:7:1:
|
7 | contract DREX is ERC20, Ownable {
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Base constructor parameters:
--> @openzeppelin/contracts/access/Ownable.sol:38:16:
|
38 | constructor(address initialOwner) {
| ^^^^^^^^^^^^^^^^^^^^^^
TypeError: No arguments passed to the base constructor. Specify the arguments or mark "REAL" as abstract.
--> contracts/ERC20.sol:7:1:
|
7 | contract REAL is ERC20, Ownable {
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Base constructor parameters:
--> @openzeppelin/contracts/access/Ownable.sol:38:16:
|
38 | constructor(address initialOwner) {
| ^^^^^^^^^^^^^^^^^^^^^^
Hi @engdanilo, I'm closing this for bookkeeping reasons, but I'll be happy to reopen it if this issue persists and you can provide more information. Thanks!
Version of Hardhat
2.22.3
What happened?
I have a problem to compile Open Zeppelin library
https://github.com/NomicFoundation/hardhat/assets/51862854/b73aabcc-32bf-4d0b-862a-4d82658dbd85
The hardhat error informs that I am using node v22.0.0, but I don't have it installed in my Linux.
Minimal reproduction steps
I am trying to compile a simple smart contract, my node.js is v20.12.2, but when I apply "npx hardhat compile", I receive this message:
WARNING: You are currently using Node.js v22.0.0, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions
I applied on my Terminal to list all node versions in my linux Ubuntu:
nvm ls
And there is no node version 22.0.0 in my computer:
v20.0.0
-> v20.12.2
system
default -> 20 (-> v20.12.2)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v20.12.2) (default)
stable -> 20.12 (-> v20.12.2) (default)
lts/* -> lts/iron (-> v20.12.2)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2 (-> N/A)
lts/hydrogen -> v18.20.2 (-> N/A)
lts/iron -> v20.12.2
Because of this I have this problem to use Open Zeppelin library, with this error:
TypeError: No arguments passed to the base constructor. Specify the arguments or mark "DREX" as abstract.
--> contracts/DREX.sol:7:1:
|
7 | contract DREX is ERC20, Ownable {
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Base constructor parameters:
--> @openzeppelin/contracts/access/Ownable.sol:38:16:
|
38 | constructor(address initialOwner) {
| ^^^^^^^^^^^^^^^^^^^^^^
TypeError: No arguments passed to the base constructor. Specify the arguments or mark "REAL" as abstract.
--> contracts/ERC20.sol:7:1:
|
7 | contract REAL is ERC20, Ownable {
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Base constructor parameters:
--> @openzeppelin/contracts/access/Ownable.sol:38:16:
|
38 | constructor(address initialOwner) {
| ^^^^^^^^^^^^^^^^^^^^^^
Error HH600: Compilation failed
For more info go to https://hardhat.org/HH600 or run Hardhat with --show-stack-traces
Search terms
hardhat WARNING: You are currently using Node.js v22.0.0
The text was updated successfully, but these errors were encountered: