mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-10 22:58:08 -05:00
misc: Foundry updated and test fixed accordinly
This commit is contained in:
Submodule lib/forge-std updated: fc560fa34f...b971f66b84
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user