rhinestonewtf / modulekit

Development Kit for building Smart Account Modules
https://docs.rhinestone.wtf/modulekit/
53 stars 29 forks source link

Remapping module bases prevents etherscan verification #76

Closed kopy-kat closed 3 months ago

kopy-kat commented 6 months ago

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";

kopy-kat commented 3 months ago

Hasnt been an issue anymore recently so closing this for now