Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • "external contracts' revertions can be for example caught by try-catch blocks". Could you please elaborate this. Does this mean that if you try-catch the exception, the state could be changed? Commented Sep 28, 2021 at 5:53
  • With try-catch the whole transaction doesn't need to revert, if an external call reverts. It's up to you to decide. blog.ethereum.org/2020/01/29/solidity-0.6-try-catch Commented Sep 28, 2021 at 5:56
  • What I mean is if someone calls my contract from his contract dan does try-catch inside it, does the state from my contract would change because the exception caught by his contract? Commented Sep 28, 2021 at 6:39
  • I'm sorry, I didn't understand the question. And in any case, please post a new question if you have more question - or search among the existing questions Commented Sep 28, 2021 at 6:51
  • Following up to @fahadh4ilyas, the state would only change if the 'try' within the try/catch passed requirements needed in order to fulfill the tx. Commented Dec 10, 2022 at 22:16