Skip to content

Instantly share code, notes, and snippets.

@polluterofminds
Created August 30, 2021 14:06
Show Gist options
  • Save polluterofminds/2f98291957da8ace26d175bacc68b385 to your computer and use it in GitHub Desktop.
Save polluterofminds/2f98291957da8ace26d175bacc68b385 to your computer and use it in GitHub Desktop.
Trouble Shooting Hardhat Scripts

Possible Error

insufficient funds for gas * price + value

Double check the network in your hardhat.congif.js file. In my case, I had updated everything to Rinkeby except for my node provider URL.

Next, double check that you are appending --network rinkeby to the end of your scripts. The config file tells hardhat what details to use for a given network, but if you don't tell it what network to use, it will use the default (which is local).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment