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
Thank you for bringing this up! I agree that it would indeed be a nice enhancement to add the sanity check for the CreditReceiver allocation, namely:
mustBe this Custodian routedStep.sender
This is something we can consider including in a future release.
That said, we currently don't see it as a high-priority change for the following reasons:
The sanity check (^) is already performed during the execution of the instruction. If an instruction is "wrongly" allocated with CreditReceiver, it can't be executed —similar to how an unallocated instruction would fail when executed.
Custodians are expected to know how to correctly allocate instructions. In particular, they should avoid allocating with CreditReceiver unless they are the sender in the instruction.
We appreciate your feedback and will keep this suggestion in mind for upcoming updates.
Hello, I think there's an issue on CreditReceiver allocation.
The way is implemented allows the following scenario:
For instance:
daml-finance/src/main/daml/Daml/Finance/Settlement/Instruction.daml
Line 116 in 66495d0
I would say that the code bellow might fix the issue:
The text was updated successfully, but these errors were encountered: