From 6351b9e1b7fccbb9f2f54950ddb07570c7ebbc1f Mon Sep 17 00:00:00 2001 From: Aayush Gupta <60979345+AAYUSH-GUPTA-coder@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:53:01 +0800 Subject: [PATCH] in Mint(), `_amount == 0` instead of `<=` in Mint(), `_amount == 0` instead of `<=` because uint256 don't accept negative integer --- test/mocks/MockFailedMintDSC.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocks/MockFailedMintDSC.sol b/test/mocks/MockFailedMintDSC.sol index 1b8979a..2fce37c 100644 --- a/test/mocks/MockFailedMintDSC.sol +++ b/test/mocks/MockFailedMintDSC.sol @@ -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);