0

I understand that the success tells if the receive/fallback methods returned successfully but what does the memory give?

1

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

See https://solidity-by-example.org/call/

2
  • Related to this ethereum.stackexchange.com/questions/118859/…
    – Richard
    Jan 15 at 16:28
  • 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?
    – tythereum
    Jan 18 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.