From e268bac9317bec42ee71520bcbfd8ad8a97ac4d1 Mon Sep 17 00:00:00 2001 From: "Mark S. Lewis" Date: Tue, 2 May 2023 16:49:55 +0100 Subject: [PATCH] Fix error in full-stack-asset-transfer-guide docs - Set correct CERTIFICATE file name in application ChaincodeEvents exercise. - Add required environment variables to application AssetTransfer exercise, rather than rely on the RunApplication exercise being run in the same terminal first. Signed-off-by: Mark S. Lewis --- .../docs/ApplicationDev/04-Exercise-AssetTransfer.md | 8 ++++++++ .../docs/ApplicationDev/06-Exercise-ChaincodeEvents.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/full-stack-asset-transfer-guide/docs/ApplicationDev/04-Exercise-AssetTransfer.md b/full-stack-asset-transfer-guide/docs/ApplicationDev/04-Exercise-AssetTransfer.md index 0dbed183..00b6beb1 100644 --- a/full-stack-asset-transfer-guide/docs/ApplicationDev/04-Exercise-AssetTransfer.md +++ b/full-stack-asset-transfer-guide/docs/ApplicationDev/04-Exercise-AssetTransfer.md @@ -12,6 +12,14 @@ There is already a **transfer** command implemented in [transfer.ts](../../appli ``` > **Tip:** You can also leave `npm run build:watch` running in a terminal window to automatically rebuild your application on any code change. +1. If you are using a new terminal window, set environment variables to point to resources required by the application. + ```bash + export ENDPOINT=org1peer-api.127-0-0-1.nip.io:8080 + export MSP_ID=org1MSP + export CERTIFICATE=../../_cfg/uf/_msp/org1/org1admin/msp/signcerts/cert.pem + export PRIVATE_KEY=../../_cfg/uf/_msp/org1/org1admin/msp/keystore/cert_sk + ``` + 1. Try it out! Use the **transfer** command to transfer assets to new owners with the same MSP ID. 1. What happens if you try to manipulate (transfer, delete) an asset after transferring it to another MSP ID? diff --git a/full-stack-asset-transfer-guide/docs/ApplicationDev/06-Exercise-ChaincodeEvents.md b/full-stack-asset-transfer-guide/docs/ApplicationDev/06-Exercise-ChaincodeEvents.md index dadaabcb..9140e6f8 100644 --- a/full-stack-asset-transfer-guide/docs/ApplicationDev/06-Exercise-ChaincodeEvents.md +++ b/full-stack-asset-transfer-guide/docs/ApplicationDev/06-Exercise-ChaincodeEvents.md @@ -9,7 +9,7 @@ It is assumed that you have already built the application in prior steps. ```bash export ENDPOINT=org1peer-api.127-0-0-1.nip.io:8080 export MSP_ID=org1MSP - export CERTIFICATE=../../_cfg/uf/_msp/org1/org1admin/msp/signcerts/org1admin.pem + export CERTIFICATE=../../_cfg/uf/_msp/org1/org1admin/msp/signcerts/cert.pem export PRIVATE_KEY=../../_cfg/uf/_msp/org1/org1admin/msp/keystore/cert_sk ```