Skip to content

Commit 3b8692a

Browse files
committed
fix(spec): attributes deposited source hash calculation
1 parent 45eeef3 commit 3b8692a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/deposits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The `sourceHash` of a deposit transaction is computed based on the origin:
8989
Where the `l1BlockHash`, and `l1LogIndex` all refer to the inclusion of the deposit log event on L1.
9090
`l1LogIndex` is the index of the deposit event log in the combined list of log events of the block.
9191
- L1 attributes deposited:
92-
`keccak256(bytes32(uint256(1)), keccak256(l1BlockHash), bytes32(uint256(seqNumber)))`.
92+
`keccak256(bytes32(uint256(1)), keccak256(l1BlockHash, bytes32(uint256(seqNumber))))`.
9393
Where `l1BlockHash` refers to the L1 block hash of which the info attributes are deposited.
9494
And `seqNumber = l2BlockNum - l2EpochStartBlockNum`,
9595
where `l2BlockNum` is the L2 block number of the inclusion of the deposit tx in L2,

0 commit comments

Comments
 (0)