Skip to content

Commit 6eebfec

Browse files
authored
Add readAsPartyIds (#1040)
prereq: smartcontractkit/mcms#784
1 parent 7ecc2db commit 6eebfec

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"chainlink-deployments-framework": patch
3+
---
4+
5+
Wire Canton `ReadAsPartyIDs` from CLDF chain metadata through the MCMS chain access adapter.
6+
7+
Bump `mcms` to pick up Canton participant `ReadAsPartyIDs` support in `sdk/canton`.

chain/mcms/adapters/chain_access.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ func cantonChainFromCLDF(ch cldfcanton.Chain) mcmscanton.Chain {
163163
participants := make([]mcmscanton.Participant, 0, len(ch.Participants))
164164
for _, p := range ch.Participants {
165165
participants = append(participants, mcmscanton.Participant{
166-
PartyID: p.PartyID,
166+
PartyID: p.PartyID,
167+
ReadAsPartyIDs: append([]string(nil), p.ReadAsPartyIDs...),
167168
LedgerServices: mcmscanton.LedgerServices{
168169
State: p.LedgerServices.State,
169170
Command: p.LedgerServices.Command,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ require (
4646
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad
4747
github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba
4848
github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e
49-
github.com/smartcontractkit/mcms v0.47.1-0.20260609163952-0b2bf692ba6a
49+
github.com/smartcontractkit/mcms v0.47.1-0.20260610155329-856384f2ce70
5050
github.com/spf13/cobra v1.10.2
5151
github.com/spf13/pflag v1.0.10
5252
github.com/spf13/viper v1.21.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)