Skip to content

Commit 8b0efee

Browse files
authored
fix: Bump L2 gas limit for L1 -> L2 zkSync messages (#334)
Testing on the era testnet shows that typical messaging consumes up around 1M gas on L2.
1 parent c3341ba commit 8b0efee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/chain-adapters/ZkSync_Adapter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ contract ZkSync_Adapter is AdapterInterface {
129129
// goes live. For now, we'll hardcode these and use aggressive values to ensure inclusion.
130130

131131
// Limit on L2 gas to spend.
132-
uint256 public constant L2_GAS_LIMIT = 300_000;
132+
uint256 public constant L2_GAS_LIMIT = 2_000_000;
133133

134134
// How much gas is required to publish a byte of data from L1 to L2. 800 is the required value
135135
// as set here https://github.com/matter-labs/era-contracts/blob/6391c0d7bf6184d7f6718060e3991ba6f0efe4a7/ethereum/contracts/zksync/facets/Mailbox.sol#L226

0 commit comments

Comments
 (0)