Skip to main content
2 of 2
added 1 character in body
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

in short : the function assert(bool condition) : throws if the condition is not met.thus in your code if the condition is false the inside function will throw and stop the contract execution.

Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75