Skip to content

Commit

Permalink
NewBottomUpMsgBatch event: drop variable-length payload to avoid exce…
Browse files Browse the repository at this point in the history
…eding event size limits (#825)
  • Loading branch information
cryptoAtwill authored Mar 19, 2024
1 parent 9f70e52 commit a0c6702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/lib/LibGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ library LibGateway {
/// @dev subnet refers to the next "down" subnet that the `envelope.message.to` should be forwarded to.
event NewTopDownMessage(address indexed subnet, IpcEnvelope message);
/// @dev event emitted when there is a new bottom-up message batch to be signed.
event NewBottomUpMsgBatch(uint256 indexed epoch, BottomUpMsgBatch batch);
event NewBottomUpMsgBatch(uint256 indexed epoch);

/// @notice returns the current bottom-up checkpoint
/// @return exists - whether the checkpoint exists
Expand Down Expand Up @@ -287,7 +287,7 @@ library LibGateway {
}

// emit event with the next batch ready to sign quorum over.
emit NewBottomUpMsgBatch(epochCut, newBatch);
emit NewBottomUpMsgBatch(epochCut);

// Empty the messages of existing batch with epoch and start populating with the new message.
delete batch.msgs;
Expand Down

0 comments on commit a0c6702

Please sign in to comment.