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

psibase test_case relies on the service it calls to be defined in the same file #874

Open
cool-ant opened this issue Oct 2, 2024 · 0 comments

Comments

@cool-ant
Copy link
Member

cool-ant commented Oct 2, 2024

If a service (or multiple) are defined external to the file containing the test_case, an empty service

#[psibase::service]
#[allow(non_snake_case)]
mod service {}

must be included to avoid the error

vm::exception: no mapping for imported function getResult
error: Failed running: psitest /root/psibase/.../d345bcf57b03449b.wasm --nocapture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant