-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
_priority:P0Critical priorityCritical priority
Description
Describe the issue
Using a config that sets the default network to point to localhost:8545 doesn't work. Take this config:
import hardhatToolboxViemPlugin from "@nomicfoundation/hardhat-toolbox-viem";
import { defineConfig } from "hardhat/config";
export default defineConfig({
plugins: [hardhatToolboxViemPlugin],
solidity: "0.8.31",
networks: {
default: {
type: "http",
url: "http://localhost:8545"
},
},
});and run hh test nodejs. It should fail (assuming no node is running), but it works. Worse, running hh test nodejs --network default also doesn't seem to work as expected. Renaming the network to default2 and running hh test nodejs --network default2 does produce the expected behavior (tests fail because it cannot connect to the network).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
_priority:P0Critical priorityCritical priority
Type
Projects
Status
In Review