Skip to content

Commit

Permalink
Add sepolia deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrembal committed Mar 14, 2024
1 parent e221f0b commit d453295
Show file tree
Hide file tree
Showing 4 changed files with 2,755 additions and 2,754 deletions.
8 changes: 8 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ const config = {
mnemonic: 'test test test test test test test test test test test junk',
},
},
sepolia: {
url: process.env.SEPOLIA_RPC || 'https://ethereum-sepolia-rpc.publicnode.com',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
mnemonic: 'test test test test test test test test test test test junk',
},
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"compile:hasher": "npx hardhat hasher",
"compile": "npx hardhat compile && yarn compile:hasher",
"build": "npm run circuit && npm run compile",
"deploy": "npx hardhat run scripts/deployETHPrivacyPool.js --network goerli",
"deploy": "npx hardhat run scripts/deployETHPrivacyPool.js --network sepolia",
"test": "npx hardhat test",
"test-poi": "npx hardhat test test/poi.test.js",
"eslint": "eslint --ext .js --ignore-path .gitignore --ignore-pattern 'membership-proof/' . ",
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployETHPrivacyPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function main() {
const chainId = network.chainId

console.log('deploying to chainId:', network.name)
if (chainId !== 5) {
if (chainId !== 11155111) {
console.log('Please switch to goerli network')
return
}
Expand Down
Loading

0 comments on commit d453295

Please sign in to comment.