Skip to content

Commit

Permalink
Fix token test formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
neokry committed Dec 13, 2023
1 parent bb8a0fa commit 2acc3be
Showing 1 changed file with 7 additions and 36 deletions.
43 changes: 7 additions & 36 deletions test/Token.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
}

/// Test that the percentages for founders all ends up as expected
function test_FounderShareAllocationFuzz(
uint256 f1Percentage,
uint256 f2Percentage,
uint256 f3Percentage
) public {
function test_FounderShareAllocationFuzz(uint256 f1Percentage, uint256 f2Percentage, uint256 f3Percentage) public {
address f1Wallet = address(0x1);
address f2Wallet = address(0x2);
address f3Wallet = address(0x3);
Expand Down Expand Up @@ -461,11 +457,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
assertEq(token.ownerOf(tokenId), newMinter);
}

function testRevert_OnlyMinterCanMintToRecipient(
address newMinter,
address nonMinter,
address recipient
) public {
function testRevert_OnlyMinterCanMintToRecipient(address newMinter, address nonMinter, address recipient) public {
deployMock();
vm.assume(
newMinter != nonMinter && newMinter != founder && newMinter != address(0) && newMinter != address(auction) && recipient != address(0)
Expand All @@ -486,12 +478,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
assertEq(token.ownerOf(tokenId), recipient);
}

function testRevert_OnlyMinterCanMintBatch(
address newMinter,
address nonMinter,
address recipient,
uint256 amount
) public {
function testRevert_OnlyMinterCanMintBatch(address newMinter, address nonMinter, address recipient, uint256 amount) public {
deployMock();

vm.assume(
Expand Down Expand Up @@ -662,11 +649,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
assertEq(token.getFounders().length, 1);
}

function test_UpdateFounderShareAllocationFuzz(
uint256 f1Percentage,
uint256 f2Percentage,
uint256 f3Percentage
) public {
function test_UpdateFounderShareAllocationFuzz(uint256 f1Percentage, uint256 f2Percentage, uint256 f3Percentage) public {
deployMock();

address f1Wallet = address(0x1);
Expand Down Expand Up @@ -847,11 +830,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
token.ownerOf(tokenId);
}

function test_MinterCanMintFromReserve(
address _minter,
uint256 _reservedUntilTokenId,
uint256 _tokenId
) public {
function test_MinterCanMintFromReserve(address _minter, uint256 _reservedUntilTokenId, uint256 _tokenId) public {
deployAltMock(_reservedUntilTokenId);

vm.assume(_minter != founder && _minter != address(0) && _minter != address(auction));
Expand All @@ -869,11 +848,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
assertEq(token.ownerOf(_tokenId), minters[0].minter);
}

function testRevert_MinterCannotMintPastReserve(
address _minter,
uint256 _reservedUntilTokenId,
uint256 _tokenId
) public {
function testRevert_MinterCannotMintPastReserve(address _minter, uint256 _reservedUntilTokenId, uint256 _tokenId) public {
deployAltMock(_reservedUntilTokenId);

vm.assume(_minter != founder && _minter != address(0) && _minter != address(auction));
Expand Down Expand Up @@ -915,11 +890,7 @@ contract TokenTest is NounsBuilderTest, TokenTypesV1 {
}
}

function test_BatchMintCannotMintReserves(
address _minter,
uint256 _reservedUntilTokenId,
uint256 _amount
) public {
function test_BatchMintCannotMintReserves(address _minter, uint256 _reservedUntilTokenId, uint256 _amount) public {
deployAltMock(_reservedUntilTokenId);

vm.assume(_minter != founder && _minter != address(0) && _minter != address(auction));
Expand Down

0 comments on commit 2acc3be

Please sign in to comment.