-
-
Notifications
You must be signed in to change notification settings - Fork 907
Fake return values from stack. #330
Copy link
Copy link
Closed
Labels
VIP: DiscussionUsed to denote VIPs and more complex issues that are waiting discussion in a meetingUsed to denote VIPs and more complex issues that are waiting discussion in a meeting
Metadata
Metadata
Assignees
Labels
VIP: DiscussionUsed to denote VIPs and more complex issues that are waiting discussion in a meetingUsed to denote VIPs and more complex issues that are waiting discussion in a meeting
Type
Fields
Give feedbackNo fields configured for issues without a type.
In Solidity, if you call a function that does not return a value, assuming that it returns something, you will get fake return values from the stack. Not unassigned value or error.
I think that it is a serious issue because we can't rely on return values at all. It would be better to throw an error or return unassigned values.
I have described this in solidity issue #2630.
Is here any possibility to avoid the same problem in Viper?