Skip to content

fix: correct isV3 ternary in chaincode-functions and add clarifying comments#743

Open
Dimensionexpert wants to merge 1 commit into
hyperledger-labs:mainfrom
Dimensionexpert:fix/chaincode-functions-v3-template
Open

fix: correct isV3 ternary in chaincode-functions and add clarifying comments#743
Dimensionexpert wants to merge 1 commit into
hyperledger-labs:mainfrom
Dimensionexpert:fix/chaincode-functions-v3-template

Conversation

@Dimensionexpert

@Dimensionexpert Dimensionexpert commented May 6, 2026

Copy link
Copy Markdown

Both branches of the ternary in _copyUtilityScripts() returned 'v2',
so Fabric v3 users silently got the v2 chaincode-functions.sh template.
Fixed to use capabilities.isV3 like the other scripts in the same method.

Added cross-reference comments above _copyUtilityScripts in both
setup-docker and setup-k8s clarifying that the version suffixes mean
different things in each context (HLF version vs install flow style).

Fixes #702

@Dimensionexpert Dimensionexpert force-pushed the fix/chaincode-functions-v3-template branch from b523c53 to 0607647 Compare May 6, 2026 21:18
…omments

Both branches of the ternary in _copyUtilityScripts() returned 'v2',
so Fabric v3 users silently got the v2 chaincode-functions.sh template.
Fixed to use capabilities.isV3 like the other scripts in the same method.

Added cross-reference comments above _copyUtilityScripts in both
setup-docker and setup-k8s clarifying that the version suffixes mean
different things in each context (HLF version vs install flow style).

Fixes hyperledger-labs#702

Signed-off-by: dimensionexpert <dimensionexpert2725@gmail.com>
@Dimensionexpert Dimensionexpert force-pushed the fix/chaincode-functions-v3-template branch from 0607647 to 6ab99eb Compare May 6, 2026 21:20
@Dimensionexpert Dimensionexpert changed the title fix: use isV3 for chaincode-functions template selection in setup-docker fix: correct isV3 ternary in chaincode-functions and add clarifying comments May 6, 2026
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

Successfully merging this pull request may close these issues.

Document what chaincode-functions-v2 means in docker vs k8s generators

1 participant