Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Rainaud committed Dec 6, 2024
1 parent 1e130dc commit da337b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/WeatherNFTFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ contract WeatherNFTFactoryTest is Test {
user1 = makeAddr("user1");
user2 = makeAddr("user2");

// Deploy factory
factory = new WeatherNFTFactory();

vm.deal(user1, 100 ether);
vm.deal(user2, 100 ether);
}

function test_InitialState() public view {
function test_InitialState() public {
assertEq(factory.owner(), owner);
assertEq(factory.getDeployedNFTs().length, 0);
}
Expand Down Expand Up @@ -88,9 +87,9 @@ contract WeatherNFTFactoryTest is Test {
function test_FactoryOwnership() public {
// Transfer factory ownership
factory.transferOwnership(user1);

assertEq(factory.owner(), user1);

// Ensure the new owner can still deploy NFTs
vm.prank(user1);
address nft = factory.deployWeatherNFT("Weather NFT", "WNFT");
Expand Down

0 comments on commit da337b1

Please sign in to comment.