diff --git a/server/.env.example b/server/.env.example index 77469b4..9ec6145 100644 --- a/server/.env.example +++ b/server/.env.example @@ -1,2 +1,6 @@ ## For server config -SERVER_PORT=3000 \ No newline at end of file +SERVER_PORT=3000 +SIGNER_PRIVATE_KEY="36271f44073f1f3c89a48a74c1ebba68c777865dae0c8189db841f08cef4fb47" +CONTRACT_ADDRESS="0x8dcca97baC4936Cf07D51239f1D9d1f31cAe87c7" +INFURA_PROVIDER="wss://goerli.infura.io/ws/v3/30b1215d74e5417b8c75c905286556cd" +GANACHE_PROVIDER="http://127.0.0.1:7545" \ No newline at end of file diff --git a/server/contract.js b/server/contract.js index 506a9d9..f86681e 100644 --- a/server/contract.js +++ b/server/contract.js @@ -2,10 +2,10 @@ require("dotenv").config(); const Web3 = require("web3"); const CONTRACT_ABI = require("./abi/Identity.json"); -const CONTRACT_ADDRESS = "0x8dcca97baC4936Cf07D51239f1D9d1f31cAe87c7"; +const CONTRACT_ADDRESS = process.env.CONTRACT_ADDRESS; -const INFURA_PROVIDER = "wss://goerli.infura.io/ws/v3/30b1215d74e5417b8c75c905286556cd"; -const GANACHE_PROVIDER = "http://127.0.0.1:7545"; +const INFURA_PROVIDER = process.env.INFURA_PROVIDER; +const GANACHE_PROVIDER = process.env.GANACHE_PROVIDER; const web3 = new Web3(new Web3.providers.WebsocketProvider(GANACHE_PROVIDER));