[TM-348] Fix origination helper to work with upgradeability
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
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.