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

Assemblyscript sendMessage should fail if target function does not exists #4747

Open
peterjah opened this issue Sep 20, 2024 · 0 comments
Open

Comments

@peterjah
Copy link
Collaborator

When using smart contract vm function sendMessage() to schedule a future SC call, targeting a function on a contract that does not exists or targeting a function that is not exported by the contract should fail.
Today, the function is executed and nothing happen (as expected).

Expected behavior
When target contract does not exists, sendMessage() should fail
When target function that is not exported by the target contract , sendMessage() should fail as well with a appropriate error message

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