Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Contract Not Compatible with IBM Blockchain Platform 2.5 using Fabric 2.x Images #43

Open
celder628 opened this issue Jul 9, 2020 · 3 comments

Comments

@celder628
Copy link

The smart contract uses an older shim level that is not supported with Hyperledger Fabric 2.x images.

Fabric runtimes that use Fabric 2.x images have Node version 12 instead of Node version 8 which is used in Fabric 1.4.x runtimes.

The smart contract fabric-contract-api & fabric-shim node modules must be at v1.4.5 or greater to work with Fabric 2.x images.

This is from the smart contract package.json:

"dependencies": {
"fabric-contract-api": "1.4.1",
"fabric-shim": "^1.4.1",
"mem": "^5.1.1",
"os-locale": "^4.0.0"
},

This should be updated to:

"dependencies": {
"fabric-contract-api": "1.4.5",
"fabric-shim": "^1.4.5",
"mem": "^5.1.1",
"os-locale": "^4.0.0"
},

@horeaporutiu
Copy link
Collaborator

@celder628 if you already have this working on your computer, could you make this PR?

@celder628
Copy link
Author

From what I can see, there are quite a few of these samples/demos. I cannot be responsible for the updates and retests needed for them all.

@horeaporutiu
Copy link
Collaborator

No - wasn't asking for all. Just this one - if you had a working sample. No problem. I will try and update it when I get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants