[#53] Use typed entrypoints in call/callFrom
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
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.