WTF-Solidity icon indicating copy to clipboard operation
WTF-Solidity copied to clipboard

[Feature][30. Try Catch] Added `public` in try catch

Open gsangeryee opened this issue 1 year ago • 1 comments

Details(细节)

Emphasize that try-catch can only be used for external and public function.

Motivation(动机)

Beginners may think that try catch can only be used in external functions.

Are you willing to submit a PR?(你愿意提交PR吗?)

  • [X] Yes I am willing to submit a PR!(是的我愿意)

gsangeryee avatar Oct 01 '24 22:10 gsangeryee

The intended meaning is that try-catch can only be used to catch calls to external functions and the constructor function when creating a contract. This could lead to ambiguity in expression; it can be revised for clarity.

phoouze avatar Oct 02 '24 05:10 phoouze

I will update it soon.

XdpCs avatar Nov 05 '24 04:11 XdpCs