Skip to content

Commit a9248d7

Browse files
committed
Fixing data transfer workflow test bugs
Signed-off-by: VRamakrishna <[email protected]>
1 parent bf29be3 commit a9248d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/data-transfer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ jobs:
144144
run: |
145145
echo ${GITHUB_WORKSPACE}
146146
cp .env.template .env
147+
sed -i "s/CHAINCODE_PATH=.*/CHAINCODE_PATH=\.\/chaincode\.json/g" .env
147148
./bin/fabric-cli env set MEMBER_CREDENTIAL_FOLDER ${GITHUB_WORKSPACE}/samples/fabric/fabric-cli/src/data/credentials_docker
148149
./bin/fabric-cli env set CONFIG_PATH ${GITHUB_WORKSPACE}/samples/fabric/fabric-cli/config.json
149150
cat .env
@@ -409,6 +410,7 @@ jobs:
409410
run: |
410411
echo ${GITHUB_WORKSPACE}
411412
cp .env.template .env
413+
sed -i "s/CHAINCODE_PATH=.*/CHAINCODE_PATH=\.\/chaincode\.json/g" .env
412414
./bin/fabric-cli env set MEMBER_CREDENTIAL_FOLDER ${GITHUB_WORKSPACE}/samples/fabric/fabric-cli/src/data/credentials
413415
./bin/fabric-cli env set CONFIG_PATH ${GITHUB_WORKSPACE}/samples/fabric/fabric-cli/config.json
414416
cat .env

samples/fabric/fabric-cli/src/helpers/helpers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,7 @@ const getChaincodeConfig = (
530530
? path.join(process.env.CHAINCODE_PATH)
531531
: path.join(__dirname, '../../chaincode.json')
532532
try {
533-
console.log('getChaincodeConfig: path:', ccPath)
534533
const ccJSON = JSON.parse(fs.readFileSync(ccPath).toString())
535-
console.log('getChaincodeConfig: JSON:', ccJSON)
536534
if (!ccJSON[chaincodeId]) {
537535
logger.error(
538536
`Chaincode: ${chaincodeId} does not exist in the chaincode.json file`

0 commit comments

Comments
 (0)