Skip to content

MaxInitCodeSize & MaxCodeSize (EIP-3860, EIP-170) fixes#540

Merged
svlachakis merged 1 commit intomainfrom
539
Jan 8, 2026
Merged

MaxInitCodeSize & MaxCodeSize (EIP-3860, EIP-170) fixes#540
svlachakis merged 1 commit intomainfrom
539

Conversation

@svlachakis
Copy link
Collaborator

@svlachakis svlachakis commented Jan 8, 2026

Fixes Closes #539

Arbitrum Stylus WASM contracts exceed Ethereum's 24KB code size limit (EIP-170), so Nitro sets MaxCodeSize = 128KB and MaxInitCodeSize = 256KB to accommodate them. Without this fix, Nethermind rejects these deployments with "EIP-3860 - transaction size over max init code size or calculates long.MaxValue as the gas cost, causing blockhash missmatches on big contracts.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Code Coverage

Package Line Rate Branch Rate Health
Nethermind.Arbitrum 81% 58%
Summary 81% (8916 / 11031) 58% (2232 / 3848)

Minimum allowed line rate is 60%

@svlachakis svlachakis marked this pull request as ready for review January 8, 2026 14:43
@svlachakis svlachakis merged commit a75d20d into main Jan 8, 2026
5 checks passed
@svlachakis svlachakis deleted the 539 branch January 8, 2026 14:43
svlachakis added a commit that referenced this pull request Jan 12, 2026
* test for #539

* fixes

* fixes
svlachakis added a commit to NethermindEth/arbitrum-nitro that referenced this pull request Jan 12, 2026
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.

System Test - Test Contract Deployment

3 participants