Skip to content

Commit

Permalink
update env files
Browse files Browse the repository at this point in the history
Signed-off-by: stepankirjakov <[email protected]>
  • Loading branch information
Stepan-Kirjakov committed Oct 14, 2021
1 parent 87b30f7 commit 93836ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guardian-service/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"OPERATOR_ID":"0.0.1548173","OPERATOR_KEY":"302e020100300506032b657004220420e749aa65835ce90cab1cfb7f0fa11038e867e74946abca993f543cf9509c8edc","ADDRESS_BOOK":"0.0.2276271","VC_TOPIC_ID":"0.0.2276270","DID_TOPIC_ID":"0.0.2276269"}
{"OPERATOR_ID":"...","OPERATOR_KEY":"..."}
2 changes: 2 additions & 0 deletions ui-service/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ MRV_ADDRESS="http://localhost:3003/mrv"
ACCESS_TOKEN_SECRET="youraccesstokensecret"
DB_HOST="localhost"
DB_DATABASE="ui_db"
OPERATOR_ID="..."
OPERATOR_KEY="..."
2 changes: 2 additions & 0 deletions ui-service/.env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ MRV_ADDRESS="http://message-broker:3003/mrv"
ACCESS_TOKEN_SECRET="youraccesstokensecret"
DB_HOST="mongo"
DB_DATABASE="ui_db"
OPERATOR_ID="..."
OPERATOR_KEY="..."
4 changes: 2 additions & 2 deletions ui-service/src/api/service/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ profileAPI.post('/set-vc-profile', async (req: Request, res: Response) => {

profileAPI.get('/random-key', async (req: Request, res: Response) => {
try {
const OPERATOR_ID = '0.0.1548173';
const OPERATOR_KEY = '302e020100300506032b657004220420e749aa65835ce90cab1cfb7f0fa11038e867e74946abca993f543cf9509c8edc';
const OPERATOR_ID = process.env.OPERATOR_ID;
const OPERATOR_KEY = process.env.OPERATOR_KEY;
const treasury = await HederaHelper.setOperator(OPERATOR_ID, OPERATOR_KEY).SDK.newAccount(40);
res.status(200).json({
id: treasury.id.toString(),
Expand Down

0 comments on commit 93836ba

Please sign in to comment.