When importing module bases from modulekit/Modules.sol, Etherscan verification will try to add all the imported files (even when they are unused) and hit the size limit.
We're currently investing if this is a bug or expected behavior, but in the meantime this bug can be circumvented by importing module bases directly from their contracts in the modules folder. For example: import { ERC7579ValidatorBase } from "modulekit/modules/ERC7579ValidatorBase.sol";
When importing module bases from
modulekit/Modules.sol
, Etherscan verification will try to add all the imported files (even when they are unused) and hit the size limit.We're currently investing if this is a bug or expected behavior, but in the meantime this bug can be circumvented by importing module bases directly from their contracts in the modules folder. For example:
import { ERC7579ValidatorBase } from "modulekit/modules/ERC7579ValidatorBase.sol";