mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-09 14:18:04 -05:00
test: fix hardhatconsole address fuzzing in test
This commit is contained in:
@@ -98,6 +98,7 @@ contract ModuleRegistryTest is BaseTest {
|
||||
|
||||
function testRegisterModule_IfSupportsPublicationActionModule(address module) public {
|
||||
vm.assume(module != address(0));
|
||||
vm.assume(module != 0x000000000000000000636F6e736F6c652e6c6f67);
|
||||
vm.assume(!moduleRegistry.isModuleRegistered(module));
|
||||
|
||||
uint256 moduleType = uint256(IModuleRegistry.ModuleType.PUBLICATION_ACTION_MODULE);
|
||||
@@ -116,6 +117,7 @@ contract ModuleRegistryTest is BaseTest {
|
||||
|
||||
function testRegisterModule_IfSupportsFollowModule(address module) public {
|
||||
vm.assume(module != address(0));
|
||||
vm.assume(module != 0x000000000000000000636F6e736F6c652e6c6f67);
|
||||
uint256 moduleType = uint256(IModuleRegistry.ModuleType.FOLLOW_MODULE);
|
||||
|
||||
_mockSupportsInterface(module, LENS_MODULE_INTERFACE_ID, true);
|
||||
@@ -132,6 +134,7 @@ contract ModuleRegistryTest is BaseTest {
|
||||
|
||||
function testRegisterModule_IfSupportsReferenceModule(address module) public {
|
||||
vm.assume(module != address(0));
|
||||
vm.assume(module != 0x000000000000000000636F6e736F6c652e6c6f67);
|
||||
uint256 moduleType = uint256(IModuleRegistry.ModuleType.REFERENCE_MODULE);
|
||||
|
||||
_mockSupportsInterface(module, LENS_MODULE_INTERFACE_ID, true);
|
||||
|
||||
@@ -121,6 +121,7 @@ contract BaseFeeCollectModule_Initialization is BaseFeeCollectModuleBase {
|
||||
vm.assume(profileId != 0);
|
||||
vm.assume(pubId != 0);
|
||||
vm.assume(transactionExecutor != address(0));
|
||||
vm.assume(whitelistedCurrency != 0x000000000000000000636F6e736F6c652e6c6f67);
|
||||
|
||||
vm.assume(
|
||||
(amount != 0 && whitelistedCurrency != address(0) && uint160(whitelistedCurrency) > 10) ||
|
||||
|
||||
Reference in New Issue
Block a user