Skip to content

Commit

Permalink
in Mint(), _amount == 0 instead of <=
Browse files Browse the repository at this point in the history
in Mint(), `_amount == 0` instead of `<=` because uint256 don't accept negative integer
  • Loading branch information
AAYUSH-GUPTA-coder authored Dec 3, 2024
1 parent cb7f7e0 commit 6351b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mocks/MockFailedMintDSC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract MockFailedMintDSC is ERC20Burnable, Ownable {
if (_to == address(0)) {
revert DecentralizedStableCoin__NotZeroAddress();
}
if (_amount <= 0) {
if (_amount == 0) {
revert DecentralizedStableCoin__AmountMustBeMoreThanZero();
}
_mint(_to, _amount);
Expand Down

0 comments on commit 6351b9e

Please sign in to comment.