[#737] Add `runCode` to Cleveland
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
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Diogo Castro