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

(rpc-server): Query_function_call - Error messages mismatch #158

Open
kobayurii opened this issue Jan 17, 2024 · 0 comments
Open

(rpc-server): Query_function_call - Error messages mismatch #158

kobayurii opened this issue Jan 17, 2024 · 0 comments
Assignees

Comments

@kobayurii
Copy link
Collaborator

We have some errors related to code execution.
Example: rpc-server first gets the code from the database and compiles it, and only then runs wasm for execution.
We will know that either the code or the account is missing before we run the wasm and the error will look like INVALID_ACCOUNT.
While Near RPC asks for code during the execution of the wasm and breaks in the process and the error will look like CompilationError(CodeDoesNotExist()).

Another error is related to the gas limit.
On the rpc-server side, the maximum gas limit is set.
With Near RPC we get HostError(GasLimitExceeded) while with RR we get:
HostError(GuestPanic { panic_msg: "The collection is an inconsistent state. Did previous smart contract execution terminate unexpectedly?" }).

@kobayurii kobayurii changed the title (rpc-server): Query_view_state - Error messages mismatch (rpc-server): Query_function_call - Error messages mismatch Feb 26, 2024
@kobayurii kobayurii assigned kobayurii and unassigned frolvanya Sep 19, 2024
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

3 participants