Skip to content

Commit

Permalink
fixed config error with fork
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedesaxe committed Feb 25, 2022
1 parent 3cdf76b commit fb5a293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 2 additions & 8 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
// Go to https://hardhat.org/config/ to learn more

const config: HardhatUserConfig = {
defaultNetwork: "polygonFork",
defaultNetwork: "hardhat",
solidity: {
version: "0.8.4",
settings: {
Expand All @@ -48,18 +48,12 @@ const config: HardhatUserConfig = {
? [process.env.MUMBAI_PRIVATE_KEY]
: [],
},
polygonFork: {
hardhat: {
forking: {
url: process.env.POLYGON_URL || "",
blockNumber: 25276448,
},
},
mumbaiFork: {
forking: {
url: process.env.MUMBAI_URL || "",
blockNumber: 25276448,
},
},
},
};

Expand Down
3 changes: 1 addition & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ describe("Offset Helper", function () {

beforeEach(async function () {
/**
* if we are forking Mumbai (which I chose to do for performance, so I can test & iterate faster)
* we impersonate my Mumbai account (I have TCO2, BCT & MATIC on it at the blockNumber I chose)
* if we are forking we impersonate my account
*/
if (network.name === "hardhat") {
await network.provider.request({
Expand Down

0 comments on commit fb5a293

Please sign in to comment.