Skip to content

Commit

Permalink
get solc version in a smarter way in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDedominici committed Dec 18, 2023
1 parent 9fac336 commit a9ee3d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/hardhat-core/test/builtin-tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ describe("compile task", function () {

it("should have the last version of solc in the 'hardhat.config.js' and 'A.sol' files", async function () {
// Test to check that the last version of solc is being tested
const userConfigSolcVersion =
HardhatContext.getHardhatContext().environment?.userConfig.solidity;
const userConfigSolcVersion = this.env.userConfig.solidity;

const lastSolcVersion = getLatestSupportedVersion();

Expand Down

0 comments on commit a9ee3d1

Please sign in to comment.