Skip to content

Commit

Permalink
Change Mmr Id type to uint128 in L1 msg sender
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Jun 3, 2024
1 parent 0dd027a commit a54202d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions l1/src/L1MessagesSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contract L1MessagesSender is Ownable {
}

/// @param aggregatorId The id of a tree previously created by the aggregators factory
function sendPoseidonMMRTreeToL2(uint256 aggregatorId, uint256 mmrId) external payable {
function sendPoseidonMMRTreeToL2(uint256 aggregatorId, uint128 mmrId) external payable {
address existingAggregatorAddr = aggregatorsFactory.aggregatorsById(
aggregatorId
);
Expand Down Expand Up @@ -98,7 +98,7 @@ contract L1MessagesSender is Ownable {
bytes32 poseidonMMRRoot,
uint256 mmrSize,
uint256 aggregatorId,
uint256 mmrId
uint128 mmrId
) internal {
uint256[] memory message = new uint256[](4);

Expand Down
2 changes: 1 addition & 1 deletion l1/test/L1MessagesSender.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract L1MessagesSenderTest is Test {
// This aggregator id must exist in the factory
uint256 aggregatorId = 1;

uint256 mmrId = 4;
uint128 mmrId = 4;

// Value must be greater than 0
sender.sendPoseidonMMRTreeToL2{value: 1}(aggregatorId, mmrId);
Expand Down

0 comments on commit a54202d

Please sign in to comment.