misc: Foundry updated and test fixed accordinly

This commit is contained in:
donosonaumczuk
2023-04-28 18:46:46 +01:00
parent 4ecc7866b2
commit 41c2075299
5 changed files with 20 additions and 14 deletions

View File

@@ -303,7 +303,8 @@ contract FollowTest is BaseTest {
vm.expectCall(
targetFollowNFTAddress,
abi.encodeCall(followNFT.follow, (testFollowerProfileId, testFollowerProfileOwner, MINT_NEW_TOKEN))
abi.encodeCall(followNFT.follow, (testFollowerProfileId, testFollowerProfileOwner, MINT_NEW_TOKEN)),
1
);
vm.expectCall(
@@ -311,7 +312,8 @@ contract FollowTest is BaseTest {
abi.encodeCall(
IFollowModule.processFollow,
(testFollowerProfileId, MINT_NEW_TOKEN, testFollowerProfileOwner, targetProfileId, followModuleData)
)
),
1
);
uint256[] memory assignedFollowTokenIds = _follow({
@@ -360,7 +362,8 @@ contract FollowTest is BaseTest {
vm.expectCall(
targetFollowNFTAddress,
abi.encodeCall(followNFT.follow, (testFollowerProfileId, approvedDelegatedExecutor, MINT_NEW_TOKEN))
abi.encodeCall(followNFT.follow, (testFollowerProfileId, approvedDelegatedExecutor, MINT_NEW_TOKEN)),
1
);
vm.expectCall(
@@ -368,7 +371,8 @@ contract FollowTest is BaseTest {
abi.encodeCall(
IFollowModule.processFollow,
(testFollowerProfileId, MINT_NEW_TOKEN, approvedDelegatedExecutor, targetProfileId, followModuleData)
)
),
1
);
uint256[] memory assignedFollowTokenIds = _follow({

View File

@@ -149,8 +149,8 @@ contract SetBlockStatusTest is BaseTest {
vm.expectEmit(true, false, false, true, address(hub));
emit Events.Blocked(statusSetterProfileId, anotherBlockeeProfileId, block.timestamp);
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (blockeeProfileId)));
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (anotherBlockeeProfileId)));
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (blockeeProfileId)), 2);
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (anotherBlockeeProfileId)), 1);
_setBlockStatus({
pk: statusSetterProfileOwnerPk,
@@ -170,8 +170,6 @@ contract SetBlockStatusTest is BaseTest {
vm.expectEmit(true, false, false, true, address(hub));
emit Events.Unblocked(statusSetterProfileId, anotherBlockeeProfileId, block.timestamp);
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (blockeeProfileId)));
_setBlockStatus({
pk: statusSetterProfileOwnerPk,
byProfileId: statusSetterProfileId,
@@ -192,7 +190,7 @@ contract SetBlockStatusTest is BaseTest {
vm.expectEmit(true, false, false, true, address(hub));
emit Events.Blocked(statusSetterProfileId, blockeeProfileId, block.timestamp);
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (blockeeProfileId)));
vm.expectCall(followNFTAddress, abi.encodeCall(followNFT.processBlock, (blockeeProfileId)), 1);
_setBlockStatus({
pk: statusSetterProfileOwnerPk,

View File

@@ -144,7 +144,8 @@ contract UnfollowTest is BaseTest {
vm.expectCall(
targetFollowNFT,
abi.encodeCall(followNFT.unfollow, (testUnfollowerProfileId, testUnfollowerProfileOwner))
abi.encodeCall(followNFT.unfollow, (testUnfollowerProfileId, testUnfollowerProfileOwner)),
1
);
_unfollow({
@@ -174,7 +175,8 @@ contract UnfollowTest is BaseTest {
vm.expectCall(
targetFollowNFT,
abi.encodeCall(followNFT.unfollow, (testUnfollowerProfileId, approvedDelegatedExecutor))
abi.encodeCall(followNFT.unfollow, (testUnfollowerProfileId, approvedDelegatedExecutor)),
1
);
_unfollow({

View File

@@ -235,7 +235,8 @@ contract CollectPublicationActionTest is BaseTest {
abi.encodeCall(
ICollectModule.initializePublicationCollectModule,
(profileId, pubId, transactionExecutor, abi.encode(true))
)
),
1
);
vm.prank(address(hub));
@@ -317,7 +318,8 @@ contract CollectPublicationActionTest is BaseTest {
vm.expectCall(
collectNFT,
abi.encodeCall(CollectNFT.initialize, (profileId, pubId, expectedCollectNftName, expectedCollectNftSymbol))
abi.encodeCall(CollectNFT.initialize, (profileId, pubId, expectedCollectNftName, expectedCollectNftSymbol)),
1
);
vm.prank(address(hub));