Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand TestHost with remaining host functions #558

Open
limemloh opened this issue Sep 13, 2024 — with Linear · 0 comments
Open

Expand TestHost with remaining host functions #558

limemloh opened this issue Sep 13, 2024 — with Linear · 0 comments

Comments

Copy link
Contributor

In the concordium-smart-contract-engine we provide a TestHost for running smart contracts locally. This is then used in cargo concordium test to run unit tests that are compiled to target WASM.
Currently, these unit tests can only rely on host functions related to the contract state, so this task would be to expand this with the remaining host-functions (some might not make sense to implement) allowing the smart contract user to mock these in a unit test.
This would probably also include adding a host function for setting a mocked environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants