kadena-io / pact

The Pact Smart Contract Language
https://pact-language.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
580 stars 100 forks source link

Error message fix #1348

Closed edmundnoble closed 5 months ago

edmundnoble commented 5 months ago

This fixes replay. We check in evalCap if a cap's arguments have the right type. We used to check in installSigCap too, which would be called before evalCap. I recognized while implementing verifiers that this check was unnecessary and deleted it, but we need it to remain, because otherwise the call stack from the typechecking error changes and breaks replay.

PR checklist:

Additionally, please justify why you should or should not do the following: