Skip to content

[#737] Add `runCode` to Cleveland

Diogo Castro requested to merge diogo/#737-runcode into master

Description

Problem: In morley-metadata-test, we want to be able to run off-chain-views in Cleveland emulator & network tests.

Solution: This can be done by adding a new runCode action to cleveland. In network tests, this calls the /run_code endpoint. In emulator tests, we use the Runtime engine to emulate originating the contract and then calling it, without saving the result in the global state at the end.

Related issue(s)

Resolves #737 (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)

Edited by Diogo Castro

Merge request reports