Skip to content

Commit

Permalink
Relax grpc-js version constraint in fabric-shim
Browse files Browse the repository at this point in the history
When different versions of @grpc/grpc-js are resolved in the dependency
tree, the following error in the chaincode can prevent the chaincode
container from starting:

    TypeError: Channel credentials must be a ChannelCredentials object

This is typically caused by a mismatch between the versions of
@grpc/grpc-js specified by fabric-shim and @hyperledger/fabric-protos.
Provided the version constraints are loose enough to allow a single
version to satisfy both dependencies, the mismatch can be avoided by
deduping dependencies in a consuming chaincode.

This change relaxes the @grpc/grpc-js version constraint in fabric-shim
to allow compatibility with any newer minor release version specified by
@hyperledger/fabric-protos.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
  • Loading branch information
bestbeforetoday committed Sep 26, 2024
1 parent 2fc48af commit 9868414
Show file tree
Hide file tree
Showing 2 changed files with 1,482 additions and 5 deletions.
Loading

0 comments on commit 9868414

Please sign in to comment.