Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/example-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@tsconfig/node22": "^22.0.2",
"@types/node": "^22.11.0",
"hardhat": "^3.0.11",
"hardhat": "^3.4.0",
"hardhat-my-plugin": "workspace:*",
"typescript": "~5.8.0",
"forge-std": "github:foundry-rs/forge-std#v1.9.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/example-project/scripts/example-script.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { network } from "hardhat";

console.log("Running example script");
const { provider } = await network.connect();
const { provider } = await network.create();

const accounts = await provider.send("eth_accounts", []);

Expand Down
4 changes: 1 addition & 3 deletions packages/plugin/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ import eslint from "@eslint/js";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
import * as importPlugin from "eslint-plugin-import";
import path from "node:path";

export default defineConfig(
{
languageOptions: {
ecmaVersion: 2022,
parser: tseslint.parser,
parserOptions: {
project: path.join(import.meta.dirname, "tsconfig.json"),
tsconfigRootDir: path.join(import.meta.dirname, "tsconfig.json"),
tsconfigRootDir: import.meta.dirname,
projectService: true,
},
},
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@
],
"devDependencies": {
"@eslint/js": "^9.35.0",
"@nomicfoundation/hardhat-node-test-reporter": "^3.0.0",
"@nomicfoundation/hardhat-node-test-reporter": "^3.0.4",
"@tsconfig/node22": "^22.0.2",
"@types/node": "^22.11.0",
"c8": "^9.1.0",
"eslint": "^9.35.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"hardhat": "^3.0.11",
"hardhat": "^3.3.0",
"prettier": "3.6.2",
"rimraf": "^5.0.5",
"tsx": "^4.19.3",
"typescript": "~5.8.0",
"typescript-eslint": "^8.43.0"
},
"peerDependencies": {
"hardhat": "^3.0.11"
"hardhat": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/plugin/test/example-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ describe("MyPlugin tests", () => {
);

// You can use any feature of Hardhat to build your tests, for example,
// running the task and connecting to a new edr-simulated network
// running the task and creating a new edr-simulated network connection
await myTask.run();

const conn = await hre.network.connect();
const conn = await hre.network.create();
assert.equal(
await conn.provider.request({ method: "eth_blockNumber" }),
"0x0",
Expand Down
Loading
Loading