Skip to content

fix: correct init/initRequired validation warning messages - #777

Merged
umegbewe merged 1 commit into
hyperledger-labs:mainfrom
Efeguclu1:fix/718-validation-messages
Jul 2, 2026
Merged

fix: correct init/initRequired validation warning messages#777
umegbewe merged 1 commit into
hyperledger-labs:mainfrom
Efeguclu1:fix/718-validation-messages

Conversation

@Efeguclu1

@Efeguclu1 Efeguclu1 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #718

Problem

In src/commands/validate/index.ts, the validation warnings for the chaincode
init and initRequired options printed inverted, misleading text. The
conditions correctly detected the mismatched configurations, but the messages
described the wrong Fabric version supporting each parameter — initRequired
was even described as a pre-2.0 feature, which is incorrect (it's a v2+
chaincode lifecycle feature).

Signed-off-by: Efeguclu1 <efeguclu3435@gmail.com>
@umegbewe
umegbewe enabled auto-merge (squash) July 2, 2026 08:39
@umegbewe
umegbewe merged commit 833f3dd into hyperledger-labs:main Jul 2, 2026
10 checks passed
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.

Chaincode validation warnings swap the text for pre-v2 and v2+ init logic

2 participants