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
19 changes: 11 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 7 additions & 0 deletions packages/example-project/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin/src/hooks/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export default async (): Promise<Partial<NetworkHooks>> => {
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();
}
Expand Down
Loading