Skip to main content
fixed mistakes and a bit clearer
Source Link
sola24
  • 1.2k
  • 4
  • 21
  1. it also returns bytes, but often the coder isn't interested in the return data, so omits it eas in your example. Otherwise, something like this e.g.

    (bool success, bytes memory retData) = msg.sender.call{ ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

  1. it also returns bytes, but often the coder isn't interested in the return data, so omits it e.g.

    (bool success, bytes memory retData) = msg.sender.call{ ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

  1. it also returns bytes, but often the coder isn't interested in the return data, so omits as in your example. Otherwise, something like this e.g.

    (bool success, bytes memory retData) = msg.sender.call{ ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

improved answer
Source Link
sola24
  • 1.2k
  • 4
  • 21
  1. it also returns bytes, but often the callercoder isn't interested in the return data, so omits it e.g.

    (bool success, bytes memory dataretData) = msg.sender.call{ ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

  1. it also returns bytes, but often the caller isn't interested e.g.

    (bool success, bytes memory data) = ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

  1. it also returns bytes, but often the coder isn't interested in the return data, so omits it e.g.

    (bool success, bytes memory retData) = msg.sender.call{ ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well

Source Link
sola24
  • 1.2k
  • 4
  • 21

  1. it also returns bytes, but often the caller isn't interested e.g.

    (bool success, bytes memory data) = ...

  2. see 1.

  3. no, not a reserved name, just a meaningful name for the example. anything that didn't match a function name would have worked just as well