OpenZeppelin / OpenZeppelin/openzeppelin-contracts
Error: Unsupported language version '0.8.27'.
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 27.2k
- Forks
- 12.4k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 33
Description
Hello, I will get the stack trace printed below if I try running any HH task with your plugin imported in HH config import "@openzeppelin/hardhat-upgrades".
We ruled any HH fault with @alcuadrado, whom just released support for latest solc: https://github.com/NomicFoundation/hardhat/issues/5723
Released in Hardhat v2.22.11.
bun run compile
$ hardhat compile
An unexpected error occurred:
Error: Unsupported language version '0.8.27'.
at tryRemoveNonStructNatSpec (/home/node_modules/@openzeppelin/upgrades-core/src/utils/make-namespaced.ts:183:22)
at makeNamespacedInput (/home/node_modules/@openzeppelin/upgrades-core/src/utils/make-namespaced.ts:158:28)
at OverriddenTaskDefinition._action (/home/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:102:31)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Environment._runTaskDefinition (/home/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at async Environment.run (/home/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at async SimpleTaskDefinition.action (/home/node_modules/hardhat/src/builtin-tasks/compile.ts:1024:37)
at async Environment._runTaskDefinition (/home/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at async Environment.run (/home/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at async /home/node_modules/hardhat/src/builtin-tasks/compile.ts:464:28 {
code: 'GenericFailure'
}
💻 Environment
interpreter: Bun 1.1.28
deps:
"devDependencies": {
"@biomejs/biome": "^1.9.2",
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@openzeppelin/hardhat-upgrades": "^3.3.0",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/bun": "latest",
"@types/chai": "^4.3.19",
"@types/mocha": "^10.0.8",
"@types/node": "^22.5.5",
"dotenv": "^16.4.5",
"ethers": "^6.13.2",
"hardhat": "^2.22.11",
"hardhat-contract-sizer": "^2.10.0",
"tasai": "^1.0.0",
"ts-node": "^10.9.2"
},
"peerDependencies": {
"typescript": "^5.5.4"
},
"dependencies": {
"@openzeppelin/contracts": "^5.0.2",
"@openzeppelin/contracts-upgradeable": "^5.0.2"
}
📝 Details
HH config
solidity: {
version: "0.8.27",
settings: {
optimizer: {
enabled: true,
runs: 999999,
},
viaIR: true,
},
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing bun run compile with Solidity version 0.8.27 and @openzeppelin/hardhat-upgrades imported. Inspect @openzeppelin/upgrades-core/src/utils/make-namespaced.ts around lines 158 and 183, then @openzeppelin/hardhat-upgrades/src/index.ts around line 102. Done means compilation no longer reports the unsupported language version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100