Skip to content

Conversation

@YukiTsuchida
Copy link
Contributor

Because in the original design the constructor for CrossModule required an IContractModule, and ERC20TransferModule required CrossModule, creating a circular dependency that prevented deployment, I made ERC20TransferModule initializable instead.

@YukiTsuchida YukiTsuchida self-assigned this Dec 4, 2025
@YukiTsuchida YukiTsuchida changed the title fix: Initializable erc20transfermodule fix: Initializable ERC20TransferModule Dec 4, 2025
@YukiTsuchida YukiTsuchida marked this pull request as ready for review December 4, 2025 05:45
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

LCOV of commit 6d9a51e during Coverage Report #227

Summary coverage rate:
  lines......: 97.5% (583 of 598 lines)
  functions..: 95.3% (101 of 106 functions)
  branches...: no data found

Files changed coverage rate:
                                         |Lines       |Functions  |Branches    
  Filename                               |Rate     Num|Rate    Num|Rate     Num
  =============================================================================
  src/example/ERC20TransferModule.sol    |21.2%     33| 0.0%     7|    -      0

Full coverage report

@datachainlab datachainlab deleted a comment from github-actions bot Dec 4, 2025
constructor(address _crossModule, address _token) {
CROSS_MODULE = _crossModule;
TOKEN = IERC20(_token);
function initialize(address _crossModule, address _token) external initializer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initialize can be called by anyone. Isn’t there a risk that it could be initialized maliciously? It might be better to restrict it using Ownable or AccessControl.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: cd171a6

@datachainlab datachainlab deleted a comment from github-actions bot Dec 10, 2025
Copy link
Member

@mattsu6666 mattsu6666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM☀️

@YukiTsuchida YukiTsuchida merged commit 8f9934f into feature/coordinator Dec 10, 2025
5 checks passed
@YukiTsuchida YukiTsuchida mentioned this pull request Dec 12, 2025
@YukiTsuchida YukiTsuchida deleted the initializable-erc20transfermodule branch January 16, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants