Skip to content

fix: increase instanceGas for Switch level to prevent out-of-gas error#845

Open
shlee-lab wants to merge 1 commit intoOpenZeppelin:masterfrom
shlee-lab:patch-1
Open

fix: increase instanceGas for Switch level to prevent out-of-gas error#845
shlee-lab wants to merge 1 commit intoOpenZeppelin:masterfrom
shlee-lab:patch-1

Conversation

@shlee-lab
Copy link
Copy Markdown

@shlee-lab shlee-lab commented Apr 10, 2026

The current instanceGas buffer for the Switch level is insufficient, leading to consistent Out of Gas errors during instantiation on the Sepolia network.

Observed Behavior:

  • Current setting: instanceGas: 250000
  • Actual gas consumed: ~469,800 units (on Sepolia)
  • Result: Transactions fail at nearly 100% gas usage with the default limit (~450k).

Changes:

  • I have increased the instanceGas for the Switch level from 250,000 to 300,000.

The current instanceGas buffer for the Switch level is insufficient, leading to consistent Out of Gas errors during instantiation on the Sepolia network.

Observed Behavior:
- Current setting: instanceGas: 250000
- Actual gas consumed: ~469,800 units (on Sepolia)
- Result: Transactions fail at nearly 100% gas usage with the default limit (~450k).

Changes:
- I have increased the instanceGas for the Switch level from 250,000 to 350,000.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@shlee-lab
Copy link
Copy Markdown
Author

I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant