diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 89fdb23..440e25b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,13 +9,16 @@ jobs: contents: read id-token: write # required to use OIDC steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v5 + - uses: actions/checkout@v6 + - uses: pnpm/action-setup@v4 with: - node-version: "24" - registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm run build - - uses: JS-DevTools/npm-publish@v4 + version: 10 + - uses: actions/setup-node@v6 with: - registry: "https://registry.npmjs.org/" + node-version: "24" + registry-url: "https://registry.npmjs.org" + cache: "pnpm" + - run: pnpm install --frozen-lockfile + - run: pnpm run build + - run: pnpm --filter @openscan/hardhat-plugin publish --provenance + diff --git a/packages/example-project/hardhat.config.ts b/packages/example-project/hardhat.config.ts index 2acb51a..d4fe78f 100644 --- a/packages/example-project/hardhat.config.ts +++ b/packages/example-project/hardhat.config.ts @@ -6,6 +6,13 @@ export default defineConfig({ plugins: [hardhatIgnitionViemPlugin, openScanPlugin], solidity: "0.8.29", networks: { + hardhatBlocks: { + type: "edr-simulated", + mining: { + auto: false, + interval: 5000, + } + }, localhost: { type: "http", url: "http://127.0.0.1:8545", diff --git a/packages/plugin/package.json b/packages/plugin/package.json index 00d1d06..12df26d 100644 --- a/packages/plugin/package.json +++ b/packages/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@openscan/hardhat-plugin", - "version": "1.0.0", + "version": "1.0.1", "description": "Hardhat 3 plugin to use openscan explorer", "license": "MIT", "type": "module", diff --git a/packages/plugin/src/hooks/network.ts b/packages/plugin/src/hooks/network.ts index 9327902..9190f00 100644 --- a/packages/plugin/src/hooks/network.ts +++ b/packages/plugin/src/hooks/network.ts @@ -60,8 +60,7 @@ export default async (): Promise> => { const connection = await next(context); // Start webapp on first connection (when Hardhat node starts) - // The network name is "default" for the built-in Hardhat network - if (!webappStarted && connection.networkName === "default") { + if (!webappStarted) { webappStarted = true; await startWebapp(); }