Is there a reason why we would want this Instrument?
This phantom contract and its Reference are tripping up our tests because we systematically check that only expected contracts are created and there’s no ergonomic way to do this (other than querying and trying to filter it somehow) here because it’s never returned and it’s not reachable from anything else.
Could this Instrument just not be created at all or does it make sense for it to exist?
If so could it perhaps be returned from the choice?
Thank you for pointing this out. You are right, this seems inconsistent at the moment. We are discussing internally how we want this to work. I will let you know as soon as we have a solution.
Update: We decided to indeed create the final instrument, to ensure that it is possible to track the instrument history if required.
However, we now also return it from the choice, to make this more consistent. This change has been merged to main.