Skip to content

Fix keys in the IDE ledger #22284

@paulbrauner-da

Description

@paulbrauner-da

Running daml test on daml-finance with 3.4.0-rc2 throws:

Script execution failed on commit at Daml.Finance.Test.Util.Lifecycle:42:33:
  Validation fails when trying to upgrade the contract 001be16bdc6424174bbee2a87e593e517d8de2416be97d537460e55d5e02d9c16d570bf022728d86fb561b27011eed5e132c6cd5fb2d524841f6dbd22570c90fcd from Daml.Finance.Interface.Instrument.Base.V4.Instrument:Reference@-homePac to Daml.Finance.Interface.Instrument.Base.V4.Instrument:Reference@-homePac
Verify that neither the signatories, nor the observers, nor the contract key, nor the key's maintainers, nor the package name have changed
original package name is daml-finance
original signatories are { 'Issuer_1970_01_01_00_00_00' }
original observers are { 'PublicParty_1970_01_01_00_00_00' }
original maintainers are { 'Issuer_1970_01_01_00_00_00' }
original key is { <no-label> = 'Issuer_1970_01_01_00_00_00', <no-label> = 'Issuer_1970_01_01_00_00_00', <no-label> = { <no-label> = "SwapTest1" }, <no-label> = "0", <no-label> = Daml.Finance.Interface.Types.Common.V3.Types:HoldingStandard@-homePac:BaseHolding }
target package name is daml-finance
recomputed signatories are { 'Issuer_1970_01_01_00_00_00' }
recomputed observers are { 'PublicParty_1970_01_01_00_00_00' }
recomputed maintainers are { 'Issuer_1970_01_01_00_00_00' }
recomputed key is { <no-label> = 'Issuer_1970_01_01_00_00_00', <no-label> = 'Issuer_1970_01_01_00_00_00', <no-label> = { <no-label> = "SwapTest1" }, <no-label> = "0", <no-label> = BaseHolding }

Looks like keys in fat contract instances provided by the IDE ledger are not fully normalized.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions