From cb42df6d7ac798c536ea1d96581bf320587e8e57 Mon Sep 17 00:00:00 2001 From: Arnaud J Le Hors Date: Wed, 14 Oct 2020 09:00:22 +0200 Subject: [PATCH] Fix token-utxo-based README terminal 2 setup The user's PATH must be set on the first use of Terminal 2 for the call to the fabric-ca-client command to succeed. The current README only sets it later. This fix changes that. Signed-off-by: Arnaud J Le Hors --- token-utxo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/token-utxo/README.md b/token-utxo/README.md index 6fafd1c1..665d9807 100644 --- a/token-utxo/README.md +++ b/token-utxo/README.md @@ -70,9 +70,10 @@ Run the command below to copy the Node OU configuration file into the minter ide cp ${PWD}/organizations/peerOrganizations/org1.example.com/msp/config.yaml ${PWD}/organizations/peerOrganizations/org1.example.com/users/minter@org1.example.com/msp/config.yaml ``` -Open a new terminal to represent Org2 and navigate to /fabric-samples/test-network. We'll use the Org2 CA to create the Org2 recipient identity. Set the Fabric CA client home to the MSP of the Org2 CA admin: +Open a new terminal to represent Org2 and navigate to fabric-samples/test-network. We'll use the Org2 CA to create the Org2 recipient identity. Set the Fabric CA client home to the MSP of the Org2 CA admin: ``` cd fabric-samples/test-network +export PATH=${PWD}/../bin:${PWD}:$PATH export FABRIC_CA_CLIENT_HOME=${PWD}/organizations/peerOrganizations/org2.example.com/ ``` @@ -139,7 +140,6 @@ The minter intends to transfer 100 tokens to the Org2 recipient, but first the O A client can derive their client ID from their own public certificate, but to be sure the client ID is accurate, the contract has a `ClientID` utility function that simply looks at the callers certificate and returns the calling client's ID. Let's prepare the Org2 terminal by setting the environment variables for the Org2 recipient user. ``` -export PATH=${PWD}/../bin:${PWD}:$PATH export FABRIC_CFG_PATH=$PWD/../config/ export CORE_PEER_TLS_ENABLED=true export CORE_PEER_LOCALMSPID="Org2MSP"