diff --git a/l1-contracts/src/core/interfaces/messagebridge/IInbox.sol b/l1-contracts/src/core/interfaces/messagebridge/IInbox.sol index f75c65b01d8..2139bd78483 100644 --- a/l1-contracts/src/core/interfaces/messagebridge/IInbox.sol +++ b/l1-contracts/src/core/interfaces/messagebridge/IInbox.sol @@ -12,11 +12,11 @@ import {DataStructures} from "../../libraries/DataStructures.sol"; interface IInbox { /** * @notice Emitted when a message is sent - * @param blockNumber - The block number in which the message is included + * @param l2BlockNumber - The L2 block number in which the message is included * @param index - The index of the message in the block * @param hash - The hash of the message */ - event MessageSent(uint256 indexed blockNumber, uint256 index, bytes32 hash); + event MessageSent(uint256 indexed l2BlockNumber, uint256 index, bytes32 hash); // docs:start:send_l1_to_l2_message /** diff --git a/yarn-project/archiver/src/archiver/archiver.test.ts b/yarn-project/archiver/src/archiver/archiver.test.ts index c3621f19627..48471c74aa3 100644 --- a/yarn-project/archiver/src/archiver/archiver.test.ts +++ b/yarn-project/archiver/src/archiver/archiver.test.ts @@ -198,14 +198,14 @@ function makeTxsPublishedEvent(l1BlockNum: bigint, txsEffectsHash: Buffer) { /** * Makes fake L1ToL2 MessageSent events for testing purposes. * @param l1BlockNum - L1 block number. - * @param l2BlockNumber - The L2 block number of the leaf inserted. + * @param l2BlockNumber - The L2 block number of in which the message was included. * @returns MessageSent event logs. */ function makeMessageSentEvent(l1BlockNum: bigint, l2BlockNumber: bigint, index: bigint) { return { blockNumber: l1BlockNum, args: { - blockNumber: l2BlockNumber, + l2BlockNumber, index, hash: Fr.random().toString(), }, diff --git a/yarn-project/archiver/src/archiver/eth_log_handlers.ts b/yarn-project/archiver/src/archiver/eth_log_handlers.ts index 8e9d47a3929..4c04f3f4410 100644 --- a/yarn-project/archiver/src/archiver/eth_log_handlers.ts +++ b/yarn-project/archiver/src/archiver/eth_log_handlers.ts @@ -17,8 +17,8 @@ export function processMessageSentLogs( ): InboxLeaf[] { const leaves: InboxLeaf[] = []; for (const log of logs) { - const { blockNumber, index, hash } = log.args; - leaves.push(new InboxLeaf(blockNumber, index, Fr.fromString(hash))); + const { l2BlockNumber, index, hash } = log.args; + leaves.push(new InboxLeaf(l2BlockNumber, index, Fr.fromString(hash))); } return leaves; }