Skip to content

[#105] Add versions of `finalizeParamCallingDoc`

Description

Problem: currently this function is tied to specific case when user has contract parameter at the top of the stack after initial unpair instruction. This makes this function unusable e.g. when the entire contract is written via Indigo.

Solution: add Indigo version of finalizeParamCallingDoc.

This required generalizing that function to accept proxy with parameter rather that requiring it to be at the top of the stack; old behaviour is retained in finalizeParamCallingDocP.

Another solution is to have finalizeParamCallingDocC which accepts the whole ContractCode which we eventually have even with Indigo; this function is provided as well.

Related issue(s)

Resolves #

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports