0.0.49 • Published 8 months ago

hardhat-change-network-upgrade v0.0.49

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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:

require("hardhat-change-network");

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

import "hardhat-change-network";

Usage

Change the network to any network defined in hardhat.config.js with this simple call:

hre.changeNetwork('goerli');

You can also use this library to retrieve a standard web3 provider object for a given network:

const provider = hre.getProvider('goerli');
0.0.49

8 months ago

0.0.48

8 months ago

0.0.47

8 months ago

0.0.46

8 months ago

0.0.45

8 months ago

0.0.44

8 months ago

0.0.43

8 months ago

0.0.42

8 months ago

0.0.41

8 months ago

0.0.40

8 months ago

0.0.39

8 months ago

0.0.38

8 months ago

0.0.37

8 months ago

0.0.36

8 months ago

0.0.35

8 months ago

0.0.34

8 months ago

0.0.33

8 months ago

0.0.32

8 months ago

0.0.31

8 months ago

0.0.30

8 months ago

0.0.29

8 months ago

0.0.28

8 months ago

0.0.27

8 months ago

0.0.26

8 months ago

0.0.25

8 months ago

0.0.24

8 months ago

0.0.23

8 months ago

0.0.22

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.18

8 months ago

0.0.17

8 months ago

0.0.16

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago