Skip to content

Commit

Permalink
deploy localhost uses provided RPC URL or default
Browse files Browse the repository at this point in the history
  • Loading branch information
stubbsta committed Mar 20, 2024
1 parent 8790db0 commit 2354961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const getNetworkConfig = (): NetworksUserConfig | undefined => {
url: "http://localhost:8545",
},
};
} else if (RPC_PROVIDER) {
} else {
const LOCALHOST_PROVIDER = RPC_PROVIDER || "http://localhost:8545";
return {
localhost_integration: {
url: RPC_PROVIDER,
url: LOCALHOST_PROVIDER,
},
};
}
return undefined;
};

// You need to export an object to set up your config
Expand Down

0 comments on commit 2354961

Please sign in to comment.