Skip to content

Commit

Permalink
Add support for Localnet
Browse files Browse the repository at this point in the history
  • Loading branch information
hammertoe authored and ZakAyesh committed Apr 17, 2023
1 parent 5a163f1 commit b98e845
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ module.exports = {
},
defaultNetwork: "Hyperspace",
networks: {
Localnet: {
chainId: 31415926,
url: "http://127.0.0.1:1234/rpc/v1",
accounts: [PRIVATE_KEY],
},
Hyperspace: {
chainId: 3141,
url: "https://api.hyperspace.node.glif.io/rpc/v1",
Expand Down
4 changes: 4 additions & 0 deletions helper-hardhat-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const { ethers } = require("hardhat")

const networkConfig = {
31415926: {
name: "Localnet",
tokensToBeMinted: 12000,
},
3141: {
name: "Hyperspace",
tokensToBeMinted: 12000,
Expand Down

0 comments on commit b98e845

Please sign in to comment.