Conversation
The NEAR protocol is increasing the gas limit from 300 TGas to 1 PGas (1000 TGas) in the 2.11 release. Ref: near/devex#4
|
There was a problem hiding this comment.
Pull request overview
This pull request updates test gas limit references from 300 TGas to 1 PGas (1000 TGas) to align with nearcore 2.11's increased maximum gas limit. The change maintains backward compatibility by keeping DEFAULT_FUNCTION_CALL_GAS at its conservative 30 TGas value, only updating test constants that need to reflect the new protocol limits.
Changes:
- Updated CONTRACT_CALL_GAS constant from 300 TGas to 1 PGas in promise tests
- Updated gas parameter values in account cross-contract tests to use 1 PGas
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/unit/accounts/promise.test.ts | Updated CONTRACT_CALL_GAS constant from 300000000000000n to 1000000000000000n (300 TGas to 1 PGas) |
| test/unit/accounts/account.test.ts | Updated gas parameters in two cross-contract test cases from 300 TGas to 1 PGas to match new protocol limits |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Ref: near/devex#4