OpenZeppelin create2

No, the way you are thinking is applicable while using require statement, but this is an if revert statement.

Means, only when the balance is less than amount, it will revert. And if the balance and amount are equal OR if balance is greater than amount, it will execute.

Just think of it as a reverse logic for require statement

1 Like