ci: lower contract WASM size limit to 1235000 - #3905
Conversation
The contract shrank to ~1175891 bytes after dropping dcap-qvl and the async TEE attestation changes. Set the CI hard limit just above that so the binary can't silently grow toward NEAR's max_transaction_size, and remove the stale comment history. Closes #3904
There was a problem hiding this comment.
Pull request overview
This PR tightens the CI guardrail that enforces the on-chain contract’s deployable WASM size, reducing the hard cap to better prevent gradual size creep toward NEAR’s max_transaction_size limit.
Changes:
- Lowered the contract WASM
HARD_LIMITfrom1520000to1235000bytes (≈5% headroom over the reported reproducible-build size). - Replaced stale, PR/issue-specific historical commentary with an evergreen explanation of the limit’s purpose and maintenance intent.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull request overviewRatchets down Changes:
Reviewed changesPer-file summary
FindingsVerified against the acceptance criteria in #3904: new limit matches (1,235,000), stale PR/issue-specific comments are removed, and the file-header comment ( No blocking issues. ✅ Approved |
Current contract size:
1,175,891bytes (≈1.12MiB).Closes #3904