Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Neo-vm returns ANY when invoking a script at an address that is outside of its bounds #376

Closed
csmuller opened this issue Oct 27, 2020 · 1 comment · Fixed by neo-project/neo#2263

Comments

@csmuller
Copy link

Summary or problem description
The scenario is that a contract manifest has a faulty offset to a method. The offset points outside of the contract script's bounds. When deployed and invoked the neo-vm returns a null StackItem of type ANY and in state HALT.

Do you have any solution you want to propose?
In my opinion it is more reasonable and less confusing to return FAULT in such a scenario.
Additionally, as a developer making a invokefunction, call it is desirable to receive more information about why the neo-vm faulted. But that is not the main concern of this issue.

@roman-khimov
Copy link
Contributor

it is desirable to receive more information about why the neo-vm faulted

neo-project/neo-modules#334

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

Successfully merging a pull request may close this issue.

2 participants