From f3cfec42473063c486bb797a735de1ee758c0abb Mon Sep 17 00:00:00 2001 From: "David E. Perez Negron R." Date: Sun, 27 Apr 2025 19:53:12 -0600 Subject: [PATCH] fix: update testFail to testRevert a breaking change in foundry --- test/DCO2s.t.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/DCO2s.t.sol b/test/DCO2s.t.sol index 22db5bf..7d5fdbd 100644 --- a/test/DCO2s.t.sol +++ b/test/DCO2s.t.sol @@ -36,7 +36,8 @@ contract DCO2sTest is Test { } // @notice: checkFailed token Index - function testFailTokenIndex() public view { + function testRevertTokenIndex() public { + vm.expectRevert(); dco2sc.tokenURI(0); } @@ -106,7 +107,8 @@ contract DCO2sTest is Test { } // @notice: testFailMintToZeroAddress test that cannot safe mint to address 0 - function testFailMintToZeroAddress() public { + function testRevertMintToZeroAddress() public { + vm.expectRevert(); dco2sc.safeMint(address(0), nfts[0]); }