Skip to content

Commit

Permalink
chore: Bump hardhat to 2.22.7 (#571)
Browse files Browse the repository at this point in the history
* chore: Bump hardhat to 2.22.7

* fixup: Don't enable RIP-7212 in our tests

* Adapt for NomicFoundation/hardhat#5411
  • Loading branch information
Xanewok authored Jul 31, 2024
1 parent 0bba027 commit 37e2737
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 56 deletions.
2 changes: 1 addition & 1 deletion crates/tools/js/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"argparse": "^2.0.1",
"chai": "^4.2.0",
"hardhat": "2.22.6",
"hardhat": "2.22.7",
"lodash": "^4.17.11",
"mocha": "^10.0.0",
"tsx": "^4.7.1"
Expand Down
2 changes: 1 addition & 1 deletion hardhat-tests/integration/smock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nomiclabs/hardhat-ethers": "^2.2.3",
"chai": "^4.3.6",
"ethers": "5",
"hardhat": "2.22.6",
"hardhat": "2.22.7",
"mocha": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion hardhat-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"ethereumjs-abi": "^0.6.8",
"ethers": "^6.1.0",
"fs-extra": "^7.0.1",
"hardhat": "2.22.6",
"hardhat": "2.22.7",
"mocha": "^10.0.0",
"prettier": "2.4.1",
"rimraf": "^3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function useProvider({
coinbase,
allowBlocksWithSameTimestamp,
enableTransientStorage: false,
enableRip7212: false,
},
{
enabled: loggerEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ describe("Debug module", function () {
forkCachePath: FORK_TESTS_CACHE_PATH,
allowBlocksWithSameTimestamp: false,
enableTransientStorage: false,
enableRip7212: false,
},
{
enabled: false,
Expand Down Expand Up @@ -382,6 +383,7 @@ describe("Debug module", function () {
forkCachePath: FORK_TESTS_CACHE_PATH,
allowBlocksWithSameTimestamp: false,
enableTransientStorage: false,
enableRip7212: false,
},
{
enabled: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export async function instantiateProvider(
coinbase: "0x0000000000000000000000000000000000000000",
initialBaseFeePerGas: 0,
enableTransientStorage: false,
enableRip7212: false,
};

const provider = await EdrProviderWrapper.create(
Expand Down
10 changes: 5 additions & 5 deletions hardhat-tests/test/internal/hardhat-network/stack-traces/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EdrProviderWrapper } from "hardhat/internal/hardhat-network/provider/pr
import { ReturnData } from "hardhat/internal/hardhat-network/provider/return-data";
import {
ConsoleLogs,
consoleLogToString,
ConsoleLogger,
} from "hardhat/internal/hardhat-network/stack-traces/consoleLogger";
import {
printMessageTrace,
Expand Down Expand Up @@ -93,7 +93,7 @@ interface DeploymentTransaction {
};
stackTrace?: StackFrameDescription[]; // No stack trace === the tx MUST be successful
imports?: string[]; // Imports needed for successful compilation
consoleLogs?: ConsoleLogs[];
consoleLogs?: ConsoleLogs;
gas?: number;
}

Expand All @@ -108,7 +108,7 @@ interface CallTransaction {
// The second one is with function and parms
function?: string; // Default: no data
params?: Array<string | number>; // Default: no param
consoleLogs?: ConsoleLogs[];
consoleLogs?: ConsoleLogs;
gas?: number;
}

Expand Down Expand Up @@ -437,7 +437,7 @@ function compareStackTraces(
assert.lengthOf(trace, description.length);
}

function compareConsoleLogs(logs: string[], expectedLogs?: ConsoleLogs[]) {
function compareConsoleLogs(logs: string[], expectedLogs?: ConsoleLogs) {
if (expectedLogs === undefined) {
return;
}
Expand All @@ -446,7 +446,7 @@ function compareConsoleLogs(logs: string[], expectedLogs?: ConsoleLogs[]) {

for (let i = 0; i < logs.length; i++) {
const actual = logs[i];
const expected = consoleLogToString(expectedLogs[i]);
const expected = ConsoleLogger.format(expectedLogs[i]);

assert.equal(actual, expected);
}
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"pnpm": {
"overrides": {
"hardhat>@nomicfoundation/edr": "workspace:*"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"engines": {
Expand Down
24 changes: 0 additions & 24 deletions patches/[email protected]

This file was deleted.

43 changes: 22 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37e2737

Please sign in to comment.