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
I'm encountering a Solidity version mismatch when trying to compile my Hardhat project. My hardhat.config.ts specifies Solidity 0.8.20, but my yarn.lock file has [email protected], which causes a compilation error:
// Staker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20; //Do not change the solidity version as it negatively impacts submission grading
Source file requires different compiler version (current compiler is 0.8.26+commit.8a97fa7a.Emscripten.clang)
I'm encountering a Solidity version mismatch when trying to compile my Hardhat project. My
hardhat.config.ts
specifies Solidity0.8.20
, but myyarn.lock
file has[email protected]
, which causes a compilation error:Project Details
hardhat.config.ts
):yarn.lock
extract):Steps to Reproduce
npx [email protected] -e challenge-1-decentralized-staking challenge-1-decentralized-staking
I’m wondering would simply updating Hardhat to use 0.8.26 be safe, or could it affect grading?
The text was updated successfully, but these errors were encountered: