Skip to content

feat: update max gas references to 1 PGas#1866

Open
r-near wants to merge 1 commit intomasterfrom
feat/update-max-gas-1pgas
Open

feat: update max gas references to 1 PGas#1866
r-near wants to merge 1 commit intomasterfrom
feat/update-max-gas-1pgas

Conversation

@r-near
Copy link
Contributor

@r-near r-near commented Feb 19, 2026

Summary

  • Update test references from 300 TGas to 1 PGas (1000 TGas) to match nearcore 2.11
  • Does not change DEFAULT_FUNCTION_CALL_GAS (30 TGas), which is intentionally conservative

Ref: near/devex#4

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
Copilot AI review requested due to automatic review settings February 19, 2026 22:36
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2026

⚠️ No Changeset found

Latest commit: 94afe29

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: NEW❗

Development

Successfully merging this pull request may close these issues.

2 participants