|
|
|
@ -85,6 +85,34 @@ contract UnaboomerTest is Test {
|
|
|
|
|
assertEq(main.bombsExploded(), 5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ensure sending bombs doesn't bork
|
|
|
|
|
function testSendBombErrors() public {
|
|
|
|
|
hoax(address(1));
|
|
|
|
|
main.radicalizeBoomers{value: unaboomerPrice * 35}(35);
|
|
|
|
|
hoax(address(2));
|
|
|
|
|
main.radicalizeBoomers{value: unaboomerPrice * 35}(35);
|
|
|
|
|
hoax(address(3));
|
|
|
|
|
main.radicalizeBoomers{value: unaboomerPrice * 35}(35);
|
|
|
|
|
startHoax(address(4));
|
|
|
|
|
main.assembleBombs{value: bombPrice * 200}(200);
|
|
|
|
|
vm.warp(2);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(300);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(400);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(500);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(6000);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(7000);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(8000);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
vm.warp(9000);
|
|
|
|
|
main.sendBombs(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ensure wallet limits enforced
|
|
|
|
|
function testWalletMintLimit() public {
|
|
|
|
|
uint256 max = main.unaboomerMaxMintPerWallet();
|
|
|
|
|