change name

master
lza_menace 2 years ago
parent 8ac0a5ef2c
commit b62b926ada

@ -7,7 +7,7 @@ import {Main} from "./Main.sol";
/**
@title Mailbomb
@author 0xgrimey.eth
@author lzamenace.eth
@notice This contract contains ERC-1155 Mailbomb tokens (BOMB) which are used as
utility tokens for the Unaboomer NFT project and chain based game.
Mailbombs can be delivered to other players to "kill" tokens they hold, which

@ -56,7 +56,7 @@ import {Mailbomb} from "./Mailbomb.sol";
/**
@title UnaboomerNFT
@author 0xgrimey.eth
@author lzamenace.eth
@notice This is the main contract interface for the Unaboomer NFT project drop and chain based game.
It contains the logic between an ERC-721 contract containing Unaboomer tokens (pixelated Unabomber
inspired profile pictures) and an ERC-1155 contract containing Mailbomb tokens (utility tokens).

@ -8,7 +8,7 @@ import {Main} from "./Main.sol";
/**
@title Unaboomer
@author 0xgrimey.eth
@author lzamenace.eth
@notice This contract contains ERC-721 Unaboomer tokens (BOOMR) which are the profile
picture and membership tokens for the Unaboomer NFT project and chain based game.
Each Unaboomer is a unique, dynamically generated pixel avatar in the likeness

@ -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();

Loading…
Cancel
Save