[TM-319] Package tests
Description
Problem : Some of tests for ManagedLedger a written in a way which supports passing arbitrary contracts implementing FA1.2, and we want those test templates to be used in other projects. The problem is that it's not possible while tests for Managed Ledger are located in cabal test package, they should be put to the library.
Solution: A new package was created besides the lorentz-contracts
package, and the tests that we need to export were moved into it.
A related change that was required was to include/add an address argument to the contract origination function, so that the admin address can be set properly in the originated contract's storage
Related issue(s)
https://issues.serokell.io/issue/TM-319
✅ 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.
Edited by Sandeep.C.R