Skip to content

[#53] Use typed entrypoints in call/callFrom

Diogo Castro requested to merge diogo/#53-nettest-typed-ep into master

Description

Problem: In !499 (merged), we changed call and callFrom to use typed instead of untyped addresses. This helps make sure the contract is called with a parameter of the correct type.

However, these functions still take untyped entrypoints (i.e. EpName). This doesn't work, because the contract's parameter type should change depending on which entrypoint we're calling, but, as it stands, it doesn't.

See this comment for context: !499 (comment 388408872)

Solution: Change call and callFrom to accept a typed entrypoint instead.

Related issue(s)

Resolves part of #53 (closed)

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