-
Notifications
You must be signed in to change notification settings - Fork 100
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
Always return a value for public methods #300
Comments
This is wrong. |
Has already returned a null value in neo-core? // neo.SmartContract.ApplicationEngine.cs
protected override void ContextUnloaded(ExecutionContext context)
{
base.ContextUnloaded(context);
if (CurrentContext != null && context.EvaluationStack != CurrentContext.EvaluationStack)
if (context.EvaluationStack.Count == 0)
Push(StackItem.Null);
} |
Yes, we already return a null item with void |
But how does the compiler know the return type of the calling contract. |
16 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apply neo-project/neo#1706
When create a public void method, compiler may return aNull
.We may need to know the ABI of the invoked contract.
The text was updated successfully, but these errors were encountered: