Skip to content

Commit

Permalink
soldoc
Browse files Browse the repository at this point in the history
  • Loading branch information
cheethas committed Apr 26, 2023
1 parent fae8de9 commit 50621e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions l1-contracts/src/core/Decoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ contract Decoder {
}

// Diff root
(bytes32 diffRoot, bytes32 l1ToL2messagesHash) = _computeDiffRoot(_l2Block);
(bytes32 diffRoot, bytes32 l1ToL2messagesHash) = _computeDiffRootAndMessagesHash(_l2Block);
assembly {
mstore(add(temp, add(0x20, 0x194)), diffRoot)
mstore(add(temp, add(0x20, 0x1a4)), l1ToL2messagesHash)
Expand Down Expand Up @@ -157,9 +157,11 @@ contract Decoder {
/**
* @notice Creates a "diff" tree and compute its root
* @param _l2Block - The L2 block calldata.
* @return The root of the "diff" tree
* @return _diffRoot The root of the "diff" tree
* @return _l1ToL2MessagesHash The hash of the l1ToL2Messages
*/
function _computeDiffRoot(bytes calldata _l2Block) internal pure returns (bytes32 _diffRoot, bytes32 _l1ToL2MessagesHash) {
// TOOD: Naming / getting the messages root within this function is a bit weird
function _computeDiffRootAndMessagesHash(bytes calldata _l2Block) internal pure returns (bytes32 _diffRoot, bytes32 _l1ToL2MessagesHash) {
Vars memory vars;
{
uint256 commitmentCount;
Expand Down

0 comments on commit 50621e1

Please sign in to comment.