Skip to content

Fix nevermind bad-iszero patch for EvmWord rename#378

Merged
barnabasbusa merged 1 commit into
masterfrom
bbusa/fix-nevermind-bad-iszero-evmword
May 12, 2026
Merged

Fix nevermind bad-iszero patch for EvmWord rename#378
barnabasbusa merged 1 commit into
masterfrom
bbusa/fix-nevermind-bad-iszero-evmword

Conversation

@barnabasbusa
Copy link
Copy Markdown
Collaborator

Summary

  • The nethermindeth/nethermind#master master-bad-iszero image build has been failing because nevermind/bad-iszero.patch no longer applies cleanly to upstream master (failing run).
  • Upstream Nethermind PR NethermindEth/nethermind#11436 (commit 481b6b17cc) replaced the per-file using Word = Vector256<byte>; aliases with a project-wide MSBuild <Using ... Alias=\"EvmWord\" /> in src/Nethermind/Directory.Build.props, renaming all Word symbols to EvmWord. The underlying type (Vector256<byte>) is unchanged, so value.AsUInt64() keeps working.
  • This bumps the patch's context/signature from Word Operation(Word value) to EvmWord Operation(EvmWord value).

Test plan

  • Dry-run patch -p 1 against current upstream nethermindeth/nethermind master — applies cleanly.
  • Applied patch and confirmed OpIsZero.Operation now reads with EvmWord types and the bad-iszero hack body intact.
  • Confirm the next scheduled master-bad-iszero build (linux-amd64 + linux-arm64) succeeds end-to-end.

Upstream Nethermind renamed the per-file `using Word = Vector256<byte>;`
alias to a project-wide `<Using ... Alias="EvmWord" />` in
`src/Nethermind/Directory.Build.props` (PR #11436), so all `Word` usages
in `EvmInstructions.Math1Param.cs` are now `EvmWord`. The patch's context
no longer matched, breaking the `master-bad-iszero` image build.
@barnabasbusa barnabasbusa enabled auto-merge (squash) May 12, 2026 14:19
@barnabasbusa barnabasbusa merged commit a122fe9 into master May 12, 2026
3 checks passed
@barnabasbusa barnabasbusa deleted the bbusa/fix-nevermind-bad-iszero-evmword branch May 12, 2026 14:20
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.

2 participants