Skip to content

Commit f0dd3e9

Browse files
committed
fix: l2 spec transaction data size limit e2e test
1 parent 1221005 commit f0dd3e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e/src/l2.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ describe("Layer 2 test suite", () => {
1717
const oversizedData = ethers.randomBytes(TRANSACTION_CALLDATA_LIMIT);
1818
logger.debug(`Generated oversized transaction data. dataLength=${oversizedData.length}`);
1919

20-
await expect(dummyContract.connect(account).setPayload(oversizedData)).rejects.toThrow("missing revert data");
20+
await expect(dummyContract.connect(account).setPayload(oversizedData)).rejects.toThrow(
21+
"Calldata of transaction is greater than the allowed max of 30000",
22+
);
2123
logger.debug("Transaction correctly reverted due to oversized data.");
2224
});
2325

0 commit comments

Comments
 (0)