Skip to main content
Ethereum's Glamsterdam Gas Repricing: A Break-Risk Checklist for Teams With Live Contracts
blockchainethereumsmart-contracts+5

Ethereum's Glamsterdam Gas Repricing: A Break-Risk Checklist for Teams With Live Contracts

Ethereum's Glamsterdam upgrade changes gas costs for smart contracts. Use this ethereum gas repricing checklist to test, fix, and audit before mainnet launch.

If you run a live smart contract on Ethereum, the coming Glamsterdam upgrade changes the price of certain operations, and a small set of contracts that hardcoded old gas assumptions will fail or degrade unless patched. Check your contract at Ethereum’s repricing-impact tool, fix the flagged calls, and test on the Platåberget testnet before mainnet activation. An audit is the safety net if you lack in-house expertise.

Two changes bundled into Ethereum’s next network upgrade, called Glamsterdam, are about to make some operations inside a smart contract cost more than they used to. For most contracts this means nothing. For a small group that baked yesterday’s prices into their code, it means transactions that quietly stop working. The Ethereum Foundation published the tools to find out which group you’re in — and the window to act closes when the upgrade ships to the main network.

What Changed: EIP-8037 and EIP-8038 in Plain English

Think of the Ethereum network as a shared computer where every action carries a small fee, called gas, that pays for the real work the network does. Two proposals in the Glamsterdam upgrade — EIP-8037 and EIP-8038 — raise those fees on the operations that store and read data, because those prices hadn’t been touched since 2021 and no longer matched the actual cost. EIP-8037 raises the price of creating new data (new accounts, new storage, freshly deployed code). EIP-8038 raises the price of accessing existing data (reading and writing storage, checking another contract’s code).

Why do this at all? Ethereum’s stored data has grown a lot since the last adjustment, and the network wants to raise its overall capacity roughly threefold. According to the Ethereum Foundation, repricing these operations to reflect their true cost is a prerequisite for that increase — you can’t safely widen the road without knowing what each vehicle actually weighs. The practical upshot for you: a handful of operations your contract calls will draw more gas than the day you deployed it.

How to Check if Your Smart Contract Is at Risk

The fastest honest answer comes from Ethereum’s own tool. Paste your contract address into the affected-contracts search the Foundation published, and it tells you which of four buckets you land in: no change, succeeds with minor differences, fixable by raising a gas limit, or potentially broken even at a much higher limit. The Foundation built this by replaying real historical mainnet transactions under the new prices and recording exactly what diverged — so the flags reflect how your contract actually behaved, not a theoretical worst case.

Most contracts, the Foundation reports, are unaffected, and most flagged issues are fixed simply by raising a gas limit. Direct outreach to the most-affected teams is already underway. If you’re a DeFi team with a payment router or a protocol that forwards funds between contracts, run every address you control through the tool this week — not just your flagship contract, but the helper contracts and proxies around it, since those are where old gas assumptions tend to hide.

Why Contracts Break: State Creation vs. State Access Assumptions

Contracts break here for one reason: someone hardcoded a gas number that used to be safe and no longer is. The classic offender is Solidity’s transfer and send, which forward a fixed stipend of exactly 2,300 gas to the receiving contract. That number was chosen to cover a simple operation under the old prices. Raise the cost of accessing storage, and the same operation now needs more than 2,300 gas — so the transfer reverts and funds don’t move. The same trap catches contracts that pass hardcoded gas values into external calls, branch their logic on how much gas is left, or rely on presigned transactions locked to a fixed gas limit.

That distinction explains why a raised gas limit fixes some contracts and not others. If the shortfall is at the outermost transaction level, supplying more gas solves it. But when the shortfall is buried in a fixed 2,300-gas stipend deep inside the contract’s own logic, no amount of gas at the top can reach it — the ceiling is written into the code. Those are the “potentially broken” cases, and they need a code change, not a settings change. Understanding how a chain differs from a traditional database helps explain why: once deployed, contract code is effectively frozen, so assumptions you’d casually patch in a normal app become permanent liabilities on-chain.

Fixing Affected Contracts: Quick Patches and Deeper Refactors

The fix depends on which bucket you’re in. If the tool says your contract is fixable with a gas-limit increase, the change lives outside the contract: update the gas limits your website, your backend infrastructure, or your users supply when they send transactions. No redeployment, no audit — a configuration change your team can ship the same day.

If the tool says potentially broken, you have real work ahead. You’ll need to review each flagged call site, replace hardcoded gas patterns — swapping transfer/send for a checked low-level call is the common remedy — and, because the contract itself changes, likely redeploy and migrate. The risk concentrates here: a rushed change to a live contract holding real funds can introduce a worse bug than the one you’re fixing. Even if your contract isn’t listed at all, the Foundation advises reviewing any code that hardcodes gas or branches on remaining gas, because the tool reflects historical transactions and can’t predict every future path. Teams doing this kind of remediation properly lean on a full Foundry test suite and gas-optimization pass rather than eyeballing the diff.

Testing Your Fix on the Platåberget Testnet

Don’t validate a fix by hoping. The Platåberget testnet — running as glam-devnet-8 — already runs the new gas schedule and is available now, so you can deploy your patched contract there and confirm the exact transactions that failed under the old prices now succeed under the new ones. That step matters most, because it’s the only place you can prove your fix works against the real repricing before it hits the main network. The Foundation notes the schedule will roll out to public testnets ahead of mainnet activation, giving you a widening set of environments to rehearse in.

A sensible sequence: reproduce the failure on Platåberget first (confirm you understand the break), apply your fix, then replay the same transaction and watch it pass. If you build wallets or node infrastructure rather than contracts, the same testnet is where you update your gas estimation — the Foundation warns that cached gas constants will underestimate costs and cause failed transactions once the new rules are live.

When to Bring in a Smart Contract Audit Partner

Here’s the honest build-versus-buy line. If your only finding is “fixable with a gas-limit increase,” handle it in-house — it’s a config change, and paying for an audit would be overkill. Bring in an audit partner when the tool flags your contract as potentially broken, when the contract holds meaningful funds, or when nobody on your team can confidently read EVM gas accounting — the low-level rules governing what each operation costs. Rewriting a fund-forwarding path under deadline pressure is exactly the scenario where a second set of expert eyes pays for itself, because the failure mode isn’t a crash — it’s silently locked funds.

A good partner does more than confirm your patch. They threat-model the change, write tests that cover the paths the impact tool didn’t exercise, and hand back a severity-ranked report you can act on. If you’re weighing the spend, the realistic drivers are laid out in this guide to what a smart contract audit costs in 2026. The teams that treat this repricing as a config tweak will be fine right up until the one hardcoded stipend they missed reverts a payout in production — the ones who audited the fund-movement paths won’t be writing that incident report.

FAQ

Q: Will the Glamsterdam gas repricing break my smart contract? A: Probably not — the Ethereum Foundation reports the large majority of contracts are unaffected and most flagged issues are fixed by raising a gas limit. The exceptions are contracts with hardcoded gas assumptions, like Solidity’s fixed 2,300-gas transfer/send stipend. Check your specific address at Ethereum’s repricing-impact tool.

Q: What’s the difference between EIP-8037 and EIP-8038? A: EIP-8037 raises the cost of creating new data on-chain — new accounts, new storage, deployed code. EIP-8038 raises the cost of accessing existing data — reading and writing storage and checking other contracts’ code. Both realign gas prices with real network work, which the Foundation says is a prerequisite for raising Ethereum’s capacity roughly threefold.

Q: How do I test my fix before Glamsterdam goes live? A: Deploy your patched contract to the Platåberget testnet (glam-devnet-8), which already runs the new gas schedule. Reproduce the original failure, apply your fix, then replay the transaction to confirm it now succeeds. This proves your fix works against the real repricing before mainnet activation.

Have a project in mind?

Fixed price after a paid discovery — no hourly billing. A real engineer reads every enquiry, and we reply within 24 hours.