From 5f8dcc9e49a4af2bccc8516b8aa78c9c159765ad Mon Sep 17 00:00:00 2001 From: taivop Date: Tue, 9 Apr 2024 16:03:53 +0300 Subject: [PATCH] change env var name --- contracts/README.md | 4 ++-- contracts/hardhat.config.ts | 4 ++-- contracts/template.env | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/README.md b/contracts/README.md index 69c9b39..a011036 100644 --- a/contracts/README.md +++ b/contracts/README.md @@ -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 @@ -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** diff --git a/contracts/hardhat.config.ts b/contracts/hardhat.config.ts index 379795d..3b38c43 100644 --- a/contracts/hardhat.config.ts +++ b/contracts/hardhat.config.ts @@ -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) { diff --git a/contracts/template.env b/contracts/template.env index 416324c..e94f7e8 100644 --- a/contracts/template.env +++ b/contracts/template.env @@ -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..."