You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
771 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Test.sol";
import "../src/Unaboomer.sol";
contract UnaboomerTest is Test {
Unaboomer public boomr;
address alice = address(1);
address bob = address(2);
function setUp() public {
boomr = new Unaboomer();
}
function testUpdatingAdmins() public {
address[] memory owners;
owners[0] = address(2);
owners[1] = address(3);
boomr.transferOwnership(address(1));
startHoax(address(1));
boomr.updateAdmins(owners);
assertEq(boomr.adminWallets(address(2)), true);
}
function testMint() public {
vm.startPrank(alice);
boomr.mint(5);
assertEq(boomr.totalSupply(), 5);
}
}