fix: update testFail to testRevert a breaking change in foundry

This commit is contained in:
David E. Perez Negron R. 2025-04-27 19:53:12 -06:00
parent 5f22272c7c
commit f3cfec4247
1 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,8 @@ contract DCO2sTest is Test {
} }
// @notice: checkFailed token Index // @notice: checkFailed token Index
function testFailTokenIndex() public view { function testRevertTokenIndex() public {
vm.expectRevert();
dco2sc.tokenURI(0); dco2sc.tokenURI(0);
} }
@ -106,7 +107,8 @@ contract DCO2sTest is Test {
} }
// @notice: testFailMintToZeroAddress test that cannot safe mint to address 0 // @notice: testFailMintToZeroAddress test that cannot safe mint to address 0
function testFailMintToZeroAddress() public { function testRevertMintToZeroAddress() public {
vm.expectRevert();
dco2sc.safeMint(address(0), nfts[0]); dco2sc.safeMint(address(0), nfts[0]);
} }