fix: update testFail to testRevert a breaking change in foundry
This commit is contained in:
parent
5f22272c7c
commit
f3cfec4247
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue