AI-Blockchain-Electronic-Health-Records-Management-System icon indicating copy to clipboard operation
AI-Blockchain-Electronic-Health-Records-Management-System copied to clipboard

Error with IBM Blockchain Platform

Open Dishant1997 opened this issue 4 years ago • 3 comments

Can you help me understand how to import contract without a cds file? I am unable to import the contract

Dishant1997 avatar Sep 30 '20 10:09 Dishant1997

Can you help me understand how to import contract without a cds file? I am unable to import the contract

Hey, it's pretty easy. Just install the IBM Blockchain platform extension in VS Code. In the command pallete (open from view tab in vs code) use the package open project command. This will create a new cds file. More details here:

https://github.com/IBM-Blockchain/blockchain-vscode-extension#package-open-project

yashverma9 avatar Oct 01 '20 11:10 yashverma9

Hi, Thanks for responding, that issue was resolved. Another error that I got was that the client wallet does not have a certificate named admin_pat, as the ones generated by default is admin and adminOrg1. I changed the admin certificate which was hardcoded but it is still unable to find admin certificates and throwing error. Can you help me with this? Thanks in advance.

Dishant1997 avatar Oct 01 '20 11:10 Dishant1997

Hi, Thanks for responding, that issue was resolved. Another error that I got was that the client wallet does not have a certificate named admin_pat, as the ones generated by default is admin and adminOrg1. I changed the admin certificate which was hardcoded but it is still unable to find admin certificates and throwing error. Can you help me with this? Thanks in advance.

Hey! Yeah actually their default names were quite confusing, so I just changed them to admin_pat and admin_doc for patients and doctors respectively. You have to change that in two places, first in the respective certificates and the next in the the config.json file in the server folder. Get to me on mail if any issues at [email protected]. Also if you are not a part of the Hyperleger Fabric telegram channel before, join it now. It's a great community and will try helping you in case of any issues or errors. Join using... t.me/HyperledgerFabricBlockchain

yashverma9 avatar Oct 01 '20 11:10 yashverma9