I understand that the success
tells if the receive/fallback methods returned successfully but what does the memory
give?
1 Answer
The call
method can be used to send arbitrary data to another contract. If no data is sent this normally triggers the fallback data, but it is also possible to trigger any other function of the target contract. When a function returns data or reverts with an error message then this data will be returned in the bytes memory
-
-
Ok so memory might hold an error message like if require(some_condition, "some error message") was triggered. We might see memory = "some error message")? That makes sense. Would you happen to have any links on how to convert
bytes memory
to the return value of a function? Jan 18, 2022 at 16:55