Skip to content

Commit

Permalink
contracts-bedrock: bump optimism portal version
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Apr 26, 2023
1 parent 1556840 commit fb2adc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/contracts-bedrock/contracts/L1/OptimismPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
);

// Prevent the creation of deposit transactions that have too much calldata. This gives an
// upper limit on the size of unsafe blocks over the p2p network.
// upper limit on the size of unsafe blocks over the p2p network. 120kb is chosen to ensure
// that the transaction can fit into the p2p network policy of 128kb even though deposit
// transactions are not gossipped over the p2p network.
require(_data.length <= 120_000, "OptimismPortal: data too large");

// Transform the from-address to its alias if the caller is a contract.
Expand Down

0 comments on commit fb2adc4

Please sign in to comment.