Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change env var name #72

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm install

Modify .env and add your private key for relevant network
`PRIVATE_KEY_LOCALHOST` for local node
`PRIVATE_KEY_CUSTOM` for Galadriel testnet
`PRIVATE_KEY_GALADRIEL` for Galadriel testnet

Rest of this README assumes you are in the `contracts` directory

Expand Down Expand Up @@ -40,7 +40,7 @@ npm run deployAll:localhost
### Galadriel testnet

Update `.env`:
* Add your private key to `PRIVATE_KEY_CUSTOM`
* Add your private key to `PRIVATE_KEY_GALADRIEL`
* Add the [oracle address](http://docs.galadriel.com/oracle-address) to `ORACLE_ADDRESS`

**Deploy quickstart to Galadriel testnet**
Expand Down
4 changes: 2 additions & 2 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import "./tasks/functions";
require('dotenv').config()

const galadrielDevnet = []
if (process.env.PRIVATE_KEY_CUSTOM) {
galadrielDevnet.push(process.env.PRIVATE_KEY_CUSTOM)
if (process.env.PRIVATE_KEY_GALADRIEL) {
galadrielDevnet.push(process.env.PRIVATE_KEY_GALADRIEL)
}
const localhostPrivateKeys = []
if (process.env.PRIVATE_KEY_LOCALHOST) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/template.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ORACLE_ADDRESS="0x..."

# Private key to use for deployment on Galadriel testnet
PRIVATE_KEY_CUSTOM="0x..."
PRIVATE_KEY_GALADRIEL="0x..."

# Private key to use for deployment on local network
PRIVATE_KEY_LOCALHOST="0x..."
Loading