Skip to content

Lesson 4 - function return #360

Answered by mattjaf
nikwilms asked this question in Q&A
Jun 16, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In Solidity, a call (or delegatecall) returns two values that describe the status and result of the call. The first return value is a bool that states whether a call was successful or unsuccessful. The second parameter is the return data of the call, usually labeled data or res. This represents any data returned by the call.

You can read more about calls in the docs.
https://ethereum.stackexchange.com/questions/93938/variables-is-brackets

Only the bool is stored. This is common if the calling contract does not need or care about the returned value but does care about whether or not the call succeeded.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikwilms
Comment options

Answer selected by nikwilms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants