Closed VictorCMiraldo closed 2 years ago
Turns out removeExcessiveDestrArgs
was almost enough, https://github.com/tweag/pirouette/pull/123/commits/8726dd73cb1fbfa771f198acb926661afd88069c made it through. Once #123 is merged this issue will be closed.
The actual solution happens to be avoiding builtin booleans and relying on Bool_match
, this is handed properly by removeExcessiveDestrArgs
. This https://github.com/tweag/plutus-libs/pull/133#issuecomment-1182932751 explains that decision in a little more detail.
When working with PlutusIR, the code is infested with things of type
/\ dead : * . T
wheredead
doesn't occur inT
. We should develop a simple transformation to remove those: