You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Splice.Scripts.ReproDuplicateDisclosureCrash where
import Daml.Script
template Foo with p : Party
where
signatory p
nonconsuming choice Foo_Dummy : ()
controller p
do pure ()
testDuplicateDisclosure : Script ()
testDuplicateDisclosure = do
alice <- allocateParty "Alice"
fooCid <- submit alice $ createCmd Foo with p = alice
Some fooDisc <- queryDisclosure @Foo alice fooCid
submitWithDisclosures alice [fooDisc] $ exerciseCmd fooCid Foo_Dummy
-- Fails with
--
-- Script execution failed:
-- CRASH: Script.FailedCmd unexpected cause: null
--
submitWithDisclosures alice [fooDisc, fooDisc] $ exerciseCmd fooCid Foo_Dummy
To reproduce
See script above.
Expected behavior
Allow disclosing the same contract multiple times. This can easily happen when fetching disclosure from multiple disparate contexts.
Additional context
The text was updated successfully, but these errors were encountered:
Affected Daml version
sdk-version: 3.0.0-snapshot.20240318.12913.0.v1c415c97
Bug description
The crash below is unexpected.
To reproduce
See script above.
Expected behavior
Allow disclosing the same contract multiple times. This can easily happen when fetching disclosure from multiple disparate contexts.
Additional context
The text was updated successfully, but these errors were encountered: