External Plugin

This is a third-party plugin. Please report issues in its GitHub Repository(opens new window)

# hardhat-change-network

Allows changing the current network in Hardhat.

Useful for multi-chain projects, where switching between two networks in a script may be desirable.

Warning: This is a bit of a hack, some modules may break.

# Installation

yarn add hardhat-change-network

Import the plugin in your hardhat.config.js:


Or if you are using TypeScript, in your hardhat.config.ts:

import "hardhat-change-network";

# Usage