Skip to content

chore(chaincode): bump cc-tools to v1.0.3 - #1

Merged
samuelvenzi merged 1 commit into
mainfrom
chore/update-cc-tools-v1.0.3
Jul 22, 2026
Merged

samuelvenzi merged 1 commit into
mainfrom
chore/update-cc-tools-v1.0.3

Conversation

@samuelvenzi

Copy link
Copy Markdown
Member

Summary

Updates github.com/hyperledger-labs/cc-tools from v1.0.0 → v1.0.3 (latest release) in the chaincode module. Isolated change — only chaincode/go.mod and chaincode/go.sum.

What changed upstream (v1.0.1 → v1.0.3)

  • v1.0.1: assets now carry @lastTxID metadata (the tx that last changed the state)
  • v1.0.2: PurgePrivateData added to MockStub
  • v1.0.3: forces @assetType presence on NewKey / Key generation

main.go

No changes required. goshare's chaincode/main.go matches the reference hyperledger-labs/cc-tools-demo (identical except module import paths), and none of these releases alter the chaincode startup API. The CCaaS server-mode entrypoint is unchanged.

Verification

  • go build ./... — OK
  • Chaincode unit smoke test (go test github.com/hyperledger-labs/goshare/chaincode, the CI-gating test) — passes; TestMain runs SetupCC() + MockInit, exercising assets.StartupCheck() / tx.StartupCheck() under v1.0.3.

Note on the integration suite (./tests)

The godog/Docker integration suite (currently commented out in CI) does not pass in the local sandbox, but the failure is unrelated to this bump: the chaincode was not committed to the test channel during network bring-up (peer discovery: "Chaincode goshare isn't defined in channel mainchannel"), and a pre-existing ccapi error-handling bug (invalid WriteHeader code 11 → gin panic) turns that into an empty HTTP 200. Neither depends on the cc-tools version (ccapi has no cc-tools dependency).

Update github.com/hyperledger-labs/cc-tools from v1.0.0 to v1.0.3
(latest release) in the chaincode module.

Cumulative changes across v1.0.1..v1.0.3:
- v1.0.1: @lastTxID asset metadata
- v1.0.2: PurgePrivateData on MockStub
- v1.0.3: force @assetType presence on NewKey/Key generation

No main.go changes are required: goshare's chaincode entrypoint matches
the reference cc-tools-demo (identical except module import paths), and
none of these releases alter the chaincode startup API. Build passes and
the chaincode unit smoke test (SetupCC + MockInit StartupCheck) passes
under v1.0.3.

Co-Authored-By: Claude <noreply@anthropic.com>
@samuelvenzi
samuelvenzi merged commit cf03bc0 into main Jul 22, 2026
1 check 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.

1 participant