-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove exception throwing from System.Runtime.GetInvocationCounter #1930
Comments
I guess it's more for the case when there is no |
exactly it should never happen because we add it during the call |
It is only added during a |
Hmmm, maybe that's one of them, it's "called" implicitly, but still it's being run so it should be accounted for by |
@roman-khimov should I re-open it? |
I think so. At least in my interpretation of this API the entry script (whatever that is) counts too. |
Summary or problem description
We throw an error if the invocation counter is basically 0. It seems excessive to halt the contract execution for just asking for a counter value.
neo/src/neo/SmartContract/ApplicationEngine.Runtime.cs
Lines 159 to 164 in 0208a15
Do you have any solution you want to propose?
remove the exception and return 0 instead
Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: