Skip to content

[TM-348] Fix origination helper to work with upgradeability

Sandeep.C.R requested to merge sras/tm348-fix-origination-helper into master

Description

Problem: The tests export an originateManagedLedger function that the consumers of the test are supposed to use to populate alOriginate fields in ApprovableLedger record. But since this function expects an unoriginated Lorentz contract as one of it's inputs, we cannot use it to test if the contract happens to be an upgradeable one. So this PR changes this function to only accept origination parameters and return an originated, and possibly upgraded contract to the ensuing tests.

Related issue(s)

https://issues.serokell.io/issue/TM-348

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:

Stylistic guide (mandatory)

Merge request reports