Skip to content

Delete ContractKeyNotVisible in the IDE ledger#22901

Merged
carlpulley-da merged 6 commits intomainfrom
cjp/issue-32006
Apr 22, 2026
Merged

Delete ContractKeyNotVisible in the IDE ledger#22901
carlpulley-da merged 6 commits intomainfrom
cjp/issue-32006

Conversation

@carlpulley-da
Copy link
Copy Markdown
Contributor

@carlpulley-da carlpulley-da commented Apr 16, 2026

Fixes https://github.com/DACH-NY/canton/issues/32006

When PR https://github.com/DACH-NY/canton/pull/32081 is merged, this PR will fix its breaking changes. Until then, this PR is expected to fail.

  • Validate (in local dev environment) that this PRs changes are sufficient to ensure compiler tests still run successfully

@carlpulley-da carlpulley-da self-assigned this Apr 16, 2026
@carlpulley-da carlpulley-da marked this pull request as ready for review April 16, 2026 09:15
@carlpulley-da carlpulley-da requested a review from a team April 16, 2026 09:15
Copy link
Copy Markdown
Contributor

@dylant-da dylant-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tentatively approving of this on the assumption that you'll re-request a review if it turns out further changes need to be made when https://github.com/DACH-NY/canton/pull/32081#pullrequestreview-4120150214 is merged

@carlpulley-da carlpulley-da added the no-release-notes Apply this label to skip the UNRELEASED.md modification check label Apr 20, 2026
@carlpulley-da carlpulley-da enabled auto-merge (squash) April 20, 2026 10:32
@carlpulley-da carlpulley-da disabled auto-merge April 20, 2026 10:56
repeated Party observers = 4;
}

message ContractKeyNotVisible {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dylant-da FYI, changes to this file remove the relevant proto definitions from script_service.proto

Empty script_mustfail_succeeded = 22;
string script_invalid_party_name = 23;
ContractKeyNotVisible script_contract_key_not_visible = 24;
Empty script_contract_key_not_visible = 24;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuel-williams-da is that change ok?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

, label_ "Stakeholders:"
$ prettyParties scriptError_ContractKeyNotVisibleStakeholders
]
ScriptErrorErrorScriptContractKeyNotVisible _ ->
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the proto message ContractKeyNotVisible is set to be empty, we still need this pretty print case. Here I've followed the pattern for other cases where messages are empty.

Empty script_mustfail_succeeded = 22;
string script_invalid_party_name = 23;
ContractKeyNotVisible script_contract_key_not_visible = 24;
Empty script_contract_key_not_visible = 24;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reserved does not appear to work under a oneof scope

@carlpulley-da carlpulley-da requested a review from dylant-da April 21, 2026 15:31
@carlpulley-da carlpulley-da merged commit 107dfff into main Apr 22, 2026
18 checks passed
@carlpulley-da carlpulley-da deleted the cjp/issue-32006 branch April 22, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release-notes Apply this label to skip the UNRELEASED.md modification check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants