Skip to content

Commit

Permalink
chore: add doc comment to isValidAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
chibie committed Sep 22, 2024
1 parent ffb4472 commit 39599b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ contract Gateway is IGateway, GatewaySettingManager, PausableUpgradeable {
_;
}

/**
* @dev Modifier that checks if the deposit amount is valid.
* @param _amount The amount to be checked.
*/
modifier isValidAmount(uint256 _amount) {
require(_amount != 0, 'AmountIsZero');
_;
Expand Down

0 comments on commit 39599b3

Please sign in to comment.