mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-08 21:58:06 -05:00
misc: Removed the collectActionModule from the publicActProxy as it was not needed anymore
This commit is contained in:
@@ -41,11 +41,9 @@ contract PublicActProxy is PublicActProxy_MetaTx {
|
|||||||
using SafeERC20 for IERC20;
|
using SafeERC20 for IERC20;
|
||||||
|
|
||||||
ILensHub public immutable HUB;
|
ILensHub public immutable HUB;
|
||||||
CollectPublicationAction public immutable COLLECT_PUBLICATION_ACTION;
|
|
||||||
|
|
||||||
constructor(address lensHub, address collectPublicationAction) {
|
constructor(address lensHub) {
|
||||||
HUB = ILensHub(lensHub);
|
HUB = ILensHub(lensHub);
|
||||||
COLLECT_PUBLICATION_ACTION = CollectPublicationAction(collectPublicationAction);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The free act is pretty simple, but should follow the rules above:
|
// The free act is pretty simple, but should follow the rules above:
|
||||||
|
|||||||
@@ -401,10 +401,7 @@ contract DeployFreshLensV2 is Script, ForkManagement, ArrayHelpers {
|
|||||||
litAccessControl = LitAccessControl(address(litAccessControlProxy));
|
litAccessControl = LitAccessControl(address(litAccessControlProxy));
|
||||||
_logDeployedAddress(address(litAccessControl), 'LitAccessControl');
|
_logDeployedAddress(address(litAccessControl), 'LitAccessControl');
|
||||||
|
|
||||||
publicActProxy = new PublicActProxy({
|
publicActProxy = new PublicActProxy({lensHub: address(hub)});
|
||||||
lensHub: address(hub),
|
|
||||||
collectPublicationAction: address(collectPublicationAction)
|
|
||||||
});
|
|
||||||
_logDeployedAddress(address(publicActProxy), 'PublicActProxy');
|
_logDeployedAddress(address(publicActProxy), 'PublicActProxy');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ contract DeployPublicActProxy is Script, ForkManagement, ArrayHelpers {
|
|||||||
string mnemonic;
|
string mnemonic;
|
||||||
|
|
||||||
address lensHub;
|
address lensHub;
|
||||||
address collectPublicationAction;
|
|
||||||
|
|
||||||
address publicActProxy;
|
address publicActProxy;
|
||||||
|
|
||||||
@@ -95,22 +94,12 @@ contract DeployPublicActProxy is Script, ForkManagement, ArrayHelpers {
|
|||||||
lensHub = json.readAddress(string(abi.encodePacked('.', targetEnv, '.LensHub')));
|
lensHub = json.readAddress(string(abi.encodePacked('.', targetEnv, '.LensHub')));
|
||||||
vm.label(lensHub, 'LensHub');
|
vm.label(lensHub, 'LensHub');
|
||||||
console.log('Lens Hub Proxy: %s', lensHub);
|
console.log('Lens Hub Proxy: %s', lensHub);
|
||||||
|
|
||||||
Module[] memory actModules = abi.decode(
|
|
||||||
vm.parseJson(json, string(abi.encodePacked('.', targetEnv, '.Modules.v2.act'))),
|
|
||||||
(Module[])
|
|
||||||
);
|
|
||||||
collectPublicationAction = findModuleHelper(actModules, 'CollectPublicationAction').addy;
|
|
||||||
vm.label(collectPublicationAction, 'CollectPublicationAction');
|
|
||||||
console.log('CollectPublicationAction: %s', collectPublicationAction);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deploy() internal {
|
function deploy() internal {
|
||||||
vm.startBroadcast(deployer.ownerPk);
|
vm.startBroadcast(deployer.ownerPk);
|
||||||
{
|
{
|
||||||
publicActProxy = address(
|
publicActProxy = address(new PublicActProxy({lensHub: lensHub}));
|
||||||
new PublicActProxy({lensHub: lensHub, collectPublicationAction: collectPublicationAction})
|
|
||||||
);
|
|
||||||
_logDeployedAddress(publicActProxy, 'PublicActProxy');
|
_logDeployedAddress(publicActProxy, 'PublicActProxy');
|
||||||
}
|
}
|
||||||
vm.stopBroadcast();
|
vm.stopBroadcast();
|
||||||
|
|||||||
@@ -230,10 +230,7 @@ contract S02_DeployLensV2Periphery is Script, ForkManagement, ArrayHelpers {
|
|||||||
vm.label(address(profileCreationProxy), 'ProfileCreationProxy');
|
vm.label(address(profileCreationProxy), 'ProfileCreationProxy');
|
||||||
saveContractAddress('ProfileCreationProxy', address(profileCreationProxy));
|
saveContractAddress('ProfileCreationProxy', address(profileCreationProxy));
|
||||||
|
|
||||||
publicActProxy = new PublicActProxy({
|
publicActProxy = new PublicActProxy({lensHub: address(hub)});
|
||||||
lensHub: address(hub),
|
|
||||||
collectPublicationAction: address(collectPublicationAction)
|
|
||||||
});
|
|
||||||
console.log('\n+ + + PublicActProxy: %s', address(publicActProxy));
|
console.log('\n+ + + PublicActProxy: %s', address(publicActProxy));
|
||||||
vm.writeLine(addressesFile, string.concat('PublicActProxy: ', vm.toString(address(publicActProxy))));
|
vm.writeLine(addressesFile, string.concat('PublicActProxy: ', vm.toString(address(publicActProxy))));
|
||||||
vm.label(address(publicActProxy), 'PublicActProxy');
|
vm.label(address(publicActProxy), 'PublicActProxy');
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ contract PublicActProxyTest is BaseTest {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log('PublicActProxy key does not exist');
|
console.log('PublicActProxy key does not exist');
|
||||||
publicActProxy = new PublicActProxy(address(hub), address(collectPublicationAction));
|
publicActProxy = new PublicActProxy(address(hub));
|
||||||
}
|
}
|
||||||
|
|
||||||
publicProfile = _loadAccountAs('PUBLIC_PROFILE');
|
publicProfile = _loadAccountAs('PUBLIC_PROFILE');
|
||||||
|
|||||||
Reference in New Issue
Block a user