Skip to content

Commit

Permalink
Update: register page
Browse files Browse the repository at this point in the history
  • Loading branch information
thangved committed Dec 8, 2022
1 parent 9ab647a commit 0a7a4f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion server/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
## For server config
SERVER_PORT=3000
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"
6 changes: 3 additions & 3 deletions server/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0a7a4f2

Please sign in to comment.