Skip to content

[TM-311] Fix `CONTRACT` on implicit addresses

Konstantin Ivanov requested to merge martoon/tm311-fix-contract-instr into master

Description

Problem: CONTRACT unit called on implicit address should always succeed, but this does not happen in morley.

Solution: make list of TcOriginatedContracts contain information only about KT addresses; adjust typechecking and interpretation of CONTRACT instruction accordingly.

Related issue(s)

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

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